Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui-qml
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
libdap-qt-ui-qml
Commits
7647b1d3
Commit
7647b1d3
authored
5 years ago
by
andrey.daragan
Browse files
Options
Downloads
Patches
Plain Diff
Bugs 2893
parent
8fc19dd0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
widgets/DapButtonForm.ui.qml
+2
-1
2 additions, 1 deletion
widgets/DapButtonForm.ui.qml
widgets/DapRadioButton.qml
+3
-1
3 additions, 1 deletion
widgets/DapRadioButton.qml
widgets/DapRadioButtonForm.ui.qml
+22
-15
22 additions, 15 deletions
widgets/DapRadioButtonForm.ui.qml
with
27 additions
and
17 deletions
widgets/DapButtonForm.ui.qml
+
2
−
1
View file @
7647b1d3
import
QtQuick
2.0
import
QtQuick
.
Controls
2.0
Button
{
Button
{
///@detalis heightButton Button height.
property
int
heightButton
///@detalis widthButton Button width.
...
...
This diff is collapsed.
Click to expand it.
widgets/DapRadioButton.qml
+
3
−
1
View file @
7647b1d3
import
QtQuick
2.4
DapRadioButtonForm
{
DapRadioButtonForm
{
}
This diff is collapsed.
Click to expand it.
widgets/DapRadioButtonForm.ui.qml
+
22
−
15
View file @
7647b1d3
...
...
@@ -17,6 +17,8 @@ RadioButton
property
alias
backgroundColor
:
backgroundColor
.
color
///@detalis spaceIndicatorText The gap between the indicator and the text.
property
int
spaceIndicatorText
///@detalis indicatorBorder Border indicator.
property
alias
indicatorBorder
:
indicatorRadioButton
.
border
///@detalis indicatorBorderColor Border color indicator.
property
string
indicatorBorderColor
///@detalis indicatorBackgroundColor Background color indicator.
...
...
@@ -34,19 +36,23 @@ RadioButton
id
:
customRadioButton
///Text Options.
contentItem
:
Text
{
id
:
nameButton
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.leftMargin
:
customRadioButton
.
indicator
.
width
+
spaceIndicatorText
verticalAlignment
:
Text
.
AlignVCenter
anchors.verticalCenter
:
parent
.
verticalCenter
color
:
"
#3E3853
"
horizontalAlignment
:
Text
.
AlignLeft
text
:
qsTr
(
"
template
"
)
}
///Indicator Options.
indicator
:
Rectangle
{
contentItem
:
Text
{
id
:
nameButton
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.leftMargin
:
customRadioButton
.
indicator
.
width
+
spaceIndicatorText
verticalAlignment
:
Text
.
AlignVCenter
anchors.verticalCenter
:
parent
.
verticalCenter
color
:
"
#3E3853
"
horizontalAlignment
:
Text
.
AlignLeft
text
:
qsTr
(
"
template
"
)
}
///Indicator Options.
indicator
:
Rectangle
{
id
:
indicatorRadioButton
implicitWidth
:
indicatorSize
implicitHeight
:
indicatorSize
...
...
@@ -54,16 +60,17 @@ RadioButton
y
:
parent
.
height
/
2
-
height
/
2
radius
:
indicatorSize
/
2
color
:
indicatorBackgroundColor
border.color
:
indicatorBorderColor
///Indicator inner options.
Rectangle
{
Rectangle
{
width
:
indicatorInnerSize
height
:
indicatorInnerSize
x
:
(
indicatorRadioButton
.
width
/
2
)
-
(
width
/
2
)
y
:
(
indicatorRadioButton
.
height
/
2
)
-
(
height
/
2
)
radius
:
indicatorInnerSize
/
2
color
:
customRadioButton
.
checked
?
indicatorInnerColorActiv
:
indicatorInnerColorNormal
visible
:
customRadioButton
.
checked
}
}
///Background options.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment