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
441d695f
Commit
441d695f
authored
5 years ago
by
konstantin.kukharenko
Committed by
andrey.daragan
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Feature 2798
parent
f85336c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DapButtonForm.ui.qml
+10
-1
10 additions, 1 deletion
DapButtonForm.ui.qml
DapComboBoxDelegate.qml
+31
-0
31 additions, 0 deletions
DapComboBoxDelegate.qml
with
41 additions
and
1 deletion
DapButtonForm.ui.qml
+
10
−
1
View file @
441d695f
...
@@ -34,6 +34,14 @@ Button {
...
@@ -34,6 +34,14 @@ Button {
property
bool
existenceImage
:
true
property
bool
existenceImage
:
true
///@detalis horizontalAligmentText Horizontal alignment.
///@detalis horizontalAligmentText Horizontal alignment.
property
alias
horizontalAligmentText
:
templateText
.
horizontalAlignment
property
alias
horizontalAligmentText
:
templateText
.
horizontalAlignment
///@detalis colorBackgroundButton This property overrides the background color.
property
alias
colorBackgroundButton
:
dapBackgroundButton
.
color
///@detalis colorTextButton This property overrides the color of the text.
property
alias
colorTextButton
:
templateText
.
color
///@detalis borderColorButton Sets the color of the border.
property
string
borderColorButton
:
"
#000000
"
///@detalis borderWidthButton Sets the width of the border.
property
int
borderWidthButton
:
0
id
:
dapButton
id
:
dapButton
...
@@ -43,7 +51,8 @@ Button {
...
@@ -43,7 +51,8 @@ Button {
color
:
dapButton
.
hovered
?
colorBackgroundHover
:
colorBackgroundNormal
color
:
dapButton
.
hovered
?
colorBackgroundHover
:
colorBackgroundNormal
implicitWidth
:
widthButton
implicitWidth
:
widthButton
implicitHeight
:
heightButton
implicitHeight
:
heightButton
border.color
:
borderColorButton
border.width
:
borderWidthButton
///button text
///button text
Text
{
Text
{
id
:
templateText
id
:
templateText
...
...
This diff is collapsed.
Click to expand it.
DapComboBoxDelegate.qml
0 → 100644
+
31
−
0
View file @
441d695f
import
QtQuick
2.0
import
QtQuick
.
Controls
2.5
ItemDelegate
{
property
string
delegateContentText
:
""
width
:
parent
.
width
height
:{
if
(
index
==
currentIndex
)
return
0
else
return
42
*
pt
}
contentItem
:
Text
{
id
:
textDelegateComboBox
anchors.fill
:
parent
anchors.topMargin
:
8
*
pt
anchors.leftMargin
:
popup
.
visible
?
sidePaddingActive
:
sidePaddingNormal
verticalAlignment
:
Qt
.
AlignTop
font.family
:
fontRobotoRegular
.
name
font.pixelSize
:
fontSizeComboBox
text
:
{
if
(
index
!=
currentIndex
)
return
delegateContentText
;}
color
:
hovered
?
hilightColorText
:
normalColorText
}
background
:
Rectangle
{
anchors.fill
:
parent
anchors.bottomMargin
:
10
*
pt
color
:
hovered
?
hilightColor
:
normalColor
}
highlighted
:
parent
.
highlightedIndex
===
index
}
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