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
Merge requests
!4
Feature 2624
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature 2624
feature-2624
into
master
Overview
0
Commits
7
Pipelines
0
Changes
1
Merged
konstantin.kukharenko
requested to merge
feature-2624
into
master
5 years ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
213ec37e
Prev
Next
Show latest version
1 file
+
17
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
213ec37e
[*]item delegat contentItem [+] property padding
· 213ec37e
Konstantin
authored
5 years ago
DapComboBox.qml
+
17
−
11
Options
@@ -60,6 +60,9 @@ ComboBox {
property
int
bottomIndentNormal
:
14
*
pt
property
int
bottomIndentActive
:
bottomIndentNormal
property
int
paddingTopItemDelegate
:
8
*
pt
property
int
paddingBottomItemDelegate
:
paddingTopItemDelegate
property
int
heightListElement
:
32
*
pt
property
int
intervalListElement
:
10
*
pt
property
int
bottomIntervalListElement
:
intervalListElement
@@ -96,6 +99,19 @@ ComboBox {
else
return
0
}
contentItem
:
Text
{
id
:
textDelegateComboBox
anchors.fill
:
parent
anchors.topMargin
:
paddingTopItemDelegate
anchors.bottomMargin
:
paddingBottomItemDelegate
anchors.leftMargin
:
popup
.
visible
?
sidePaddingActive
:
sidePaddingNormal
font.family
:
fontRobotoRegular
.
name
font.pixelSize
:
fontSizeComboBox
text
:
{
if
(
index
!=
currentIndex
)
return
modelData
;}
color
:
hovered
?
hilightColorText
:
normalColorText
}
//Indent from the bottom edge or the next line that will not stand out when you hover over the mouse
//And here is the list text
background
:
Rectangle
{
@@ -112,17 +128,7 @@ ComboBox {
color
:
hovered
?
hilightColor
:
normalColor
//the list text
Text
{
id
:
textDelegateComboBox
anchors.fill
:
parent
// anchors.topMargin: 8 * pt
anchors.leftMargin
:
popup
.
visible
?
sidePaddingActive
:
sidePaddingNormal
verticalAlignment
:
Qt
.
AlignVCenter
font.family
:
fontRobotoRegular
.
name
font.pixelSize
:
fontSizeComboBox
text
:
{
if
(
index
!=
currentIndex
)
return
modelData
;}
color
:
hovered
?
hilightColorText
:
normalColorText
}
}
highlighted
:
parent
.
highlightedIndex
===
index
}
Loading