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
!7
Feature 2798
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature 2798
feature-2798
into
master
Overview
0
Commits
9
Pipelines
0
Changes
2
Merged
konstantin.kukharenko
requested to merge
feature-2798
into
master
5 years ago
Overview
0
Commits
9
Pipelines
0
Changes
2
Expand
add new property
👍
0
👎
0
Merge request reports
Viewing commit
7b490c2c
Prev
Next
Show latest version
2 files
+
27
−
12
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
7b490c2c
09/12/2019
· 7b490c2c
Konstantin
authored
5 years ago
DapComboBox.qml
+
26
−
11
Options
import
QtQuick
2.0
import
QtQuick
2.0
import
QtQuick
.
Controls
2.
5
import
QtQuick
.
Controls
2.
2
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Controls
.
Styles
1.4
import
QtGraphicalEffects
1.0
import
QtGraphicalEffects
1.0
///This file will be moved to libdap and removed from here.
///This file will be moved to libdap and removed from here.
///this comboBox used int top panel exchange and statusBar will be deleted in the future
///this comboBox used int top panel exchange and statusBar will be deleted in the future
///About property
///About property
///
hilightColor - color of the selected item
///
@
hilightColor - color of the selected item
///
fontSizeComboBox - font size for the entire widget
///
@
fontSizeComboBox - font size for the entire widget
///widthPopupComboBoxActive and widthPopupComboBoxNormal - width of the combo box
///
@
widthPopupComboBoxActive and
@
widthPopupComboBoxNormal - width of the combo box
/// in the active state and in the normal state
/// in the active state and in the normal state
///
spacingEdgeActive and spacingEdge
Normal - padding width of the combo box in the active state
///
@sidePaddingActive and @sidePadding
Normal - padding width of the combo box in the active state
/// and in the normal state
/// and in the normal state
///@sidePaddingActive and @sidePaddingNormal - sets the indent from the edge of the right and left
/// edges of the parent in the active and normal state
///@topIndentActive and @topIndentNormal
///@bottomIndentActive and @bottomIndentNormal
/// - sets the indent from the edge of the upper and lower edges of the parent in the active and normal state
ComboBox
{
ComboBox
{
property
string
normalColorText
:
"
#070023
"
property
string
normalColorText
:
"
#070023
"
property
string
hilightColorText
:
"
#FFFFFF
"
property
string
hilightColorText
:
"
#FFFFFF
"
property
string
normalColor
:
"
#FFFFFF
"
property
string
normalColor
:
"
#FFFFFF
"
property
string
hilightColor
:
"
#330F54
"
property
string
hilightColor
:
"
#330F54
"
property
int
fontSizeComboBox
:
16
*
pt
property
int
fontSizeComboBox
:
16
*
pt
property
int
widthPopupComboBoxActive
:
parent
.
width
property
int
widthPopupComboBoxActive
:
parent
.
width
property
int
widthPopupComboBoxNormal
:
parent
.
width
property
int
widthPopupComboBoxNormal
:
parent
.
width
property
int
spacingEdgeActive
:
16
*
pt
property
int
spacingEdgeNormal
:
16
*
pt
property
int
sidePaddingActive
:
16
*
pt
property
int
sidePaddingNormal
:
16
*
pt
property
int
topIndentActive
:
12
*
pt
property
int
topIndentNormal
:
12
*
pt
property
int
bottomIndentActive
:
14
*
pt
property
int
bottomIndentNormal
:
14
*
pt
id
:
customComboBox
id
:
customComboBox
@@ -36,7 +51,7 @@ ComboBox {
@@ -36,7 +51,7 @@ ComboBox {
height
:
24
*
pt
height
:
24
*
pt
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.rightMargin
:
popup
.
visible
?
s
pacingEdgeActive
:
spacingEdge
Normal
anchors.rightMargin
:
popup
.
visible
?
s
idePaddingActive
:
sidePadding
Normal
}
}
background
:
Rectangle
{
background
:
Rectangle
{
@@ -49,8 +64,8 @@ ComboBox {
@@ -49,8 +64,8 @@ ComboBox {
contentItem
:
Text
{
contentItem
:
Text
{
anchors.fill
:
parent
anchors.fill
:
parent
anchors.leftMargin
:
popup
.
visible
?
s
pacingEdgeActive
:
spacingEdge
Normal
anchors.leftMargin
:
popup
.
visible
?
s
idePaddingActive
:
sidePadding
Normal
anchors.topMargin
:
12
*
pt
anchors.topMargin
:
popup
.
visible
?
topIndentActive
:
topIndentNormal
text
:
parent
.
displayText
text
:
parent
.
displayText
font.family
:
fontRobotoRegular
.
name
font.family
:
fontRobotoRegular
.
name
font.pixelSize
:
fontSizeComboBox
font.pixelSize
:
fontSizeComboBox
Loading