Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
b2cd03d8
Commit
b2cd03d8
authored
Jan 06, 2018
by
Chupligin Sergey
Committed by
Sergey Chupligin
Apr 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Dialogs] Add bgOpacity property and open/close functions
parent
f5807cca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
QueryDialog.qml
src/controls/qml/dialogs/QueryDialog.qml
+13
-1
No files found.
src/controls/qml/dialogs/QueryDialog.qml
View file @
b2cd03d8
...
...
@@ -12,14 +12,24 @@ Item {
property
alias
headingText
:
heading
.
text
property
alias
subLabelText
:
subLabel
.
text
property
real
bgOpacity
:
1
;
property
string
icon
:
""
property
bool
inline
:
true
function
open
(){
shell
.
visible
=
true
}
function
close
(){
shell
.
visible
=
false
}
Rectangle
{
id
:
shadow
width
:
parent
.
width
height
:
inline
?
(
parent
.
height
-
cancel
.
height
)
/
3
:
parent
.
height
-
cancel
.
height
opacity
:
0.65
opacity
:
shell
.
bgOpacity
color
:
Theme
.
backgroundColor
anchors.bottom
:
cancel
.
top
}
...
...
@@ -75,6 +85,7 @@ Item {
onClicked
:
{
shell
.
canceled
()
shell
.
selected
()
close
()
}
}
Button
{
...
...
@@ -89,6 +100,7 @@ Item {
onClicked
:
{
shell
.
accepted
()
shell
.
selected
()
close
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment