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
8dffa309
Commit
8dffa309
authored
Nov 06, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix desigin of QueryDialog
parent
484bd20e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
9 deletions
+48
-9
QueryDialogPage.qml
examples/touch/content/QueryDialogPage.qml
+8
-4
example.jpg
examples/touch/images/example.jpg
+0
-0
touch.pro
examples/touch/touch.pro
+1
-0
QueryDialog.qml
src/dialogs/QueryDialog.qml
+36
-5
dialogs.pro
src/dialogs/dialogs.pro
+3
-0
No files found.
examples/touch/content/QueryDialogPage.qml
View file @
8dffa309
...
...
@@ -42,10 +42,14 @@ Page {
headerTools
:
HeaderToolsLayout
{
showBackButton
:
true
;
title
:
"
Query dialog example
"
}
QueryDialog
{
cancelText
:
"
Cancel
"
acceptText
:
"
Delete
"
headingText
:
"
Are you sure you want to delete this?
"
subLabelText
:
"
Continue?
"
cancelText
:
qsTr
(
"
Cancel
"
)
acceptText
:
qsTr
(
"
Delete
"
)
headingText
:
qsTr
(
"
Are you sure you want to delete this?
"
)
subLabelText
:
qsTr
(
"
Do you want to continue?
"
)
icon
:
"
image://theme/trash
"
image
:
"
/usr/share/glacier-components/images/example.jpg
"
onAccepted
:
{
result
.
text
=
"
User accepted
"
}
...
...
examples/touch/images/example.jpg
0 → 100644
View file @
8dffa309
134 KB
examples/touch/touch.pro
View file @
8dffa309
...
...
@@ -31,6 +31,7 @@ qml.files += \
qml
.
path
=
/
usr
/
share
/
glacier
-
components
/
content
images
.
files
=
images
/*
.png
images.files += images
/*
.jpg
images.path = /usr/share/glacier-components/images
OTHER_FILES += $$qml.files
...
...
src/dialogs/QueryDialog.qml
View file @
8dffa309
...
...
@@ -11,30 +11,61 @@ Item {
property
alias
headingText
:
heading
.
text
property
alias
subLabelText
:
subLabel
.
text
property
string
icon
:
""
property
string
image
:
""
Rectangle
{
Image
{
anchors.fill
:
parent
fillMode
:
Image
.
PreserveAspectCrop
source
:
shell
.
image
visible
:
shell
.
image
!=
""
}
Rectangle
{
id
:
shadow
width
:
parent
.
width
height
:
(
shell
.
image
!=
""
&&
shell
.
icon
==
""
)
?
(
parent
.
height
-
cancel
.
height
)
/
3
:
parent
.
height
-
cancel
.
height
opacity
:
0.65
color
:
Theme
.
backgroundColor
anchors.bottom
:
cancel
.
top
}
Image
{
id
:
icon
source
:
shell
.
icon
width
:
Theme
.
itemHeightMedium
height
:
width
anchors
{
top
:
shell
.
top
topMargin
:
Theme
.
itemSpacingHuge
horizontalCenter
:
shell
.
horizontalCenter
}
visible
:
shell
.
icon
!=
""
fillMode
:
Image
.
PreserveAspectCrop
}
Label
{
width
:
parent
.
width
*
0.8
id
:
heading
anchors.centerIn
:
parent
width
:
parent
.
width
*
0.95
anchors
{
centerIn
:
(
shell
.
image
!=
""
&&
shell
.
icon
==
""
)
?
shadow
:
parent
}
horizontalAlignment
:
Text
.
AlignHCenter
font.weight
:
Theme
.
fontWeightLarge
font.pixelSize
:
(
shell
.
image
!=
""
&&
shell
.
icon
==
""
)
?
Theme
.
fontSizeTiny
:
Theme
.
fontSizeSmall
wrapMode
:
Text
.
Wrap
}
Label
{
id
:
subLabel
width
:
parent
.
width
*
0.
8
width
:
parent
.
width
*
0.
95
wrapMode
:
Text
.
Wrap
font.weight
:
Theme
.
fontWeightMedium
font.pixelSize
:
(
shell
.
image
!=
""
&&
shell
.
icon
==
""
)
?
Theme
.
fontSizeTiny
:
Theme
.
fontSizeSmall
horizontalAlignment
:
Text
.
AlignHCenter
anchors
{
top
:
heading
.
bottom
topMargin
:
Theme
.
itemSpacingLarge
topMargin
:
(
shell
.
image
!=
""
&&
shell
.
icon
==
""
)
?
Theme
.
itemSpacingSmall
:
Theme
.
itemSpacingLarge
horizontalCenter
:
shell
.
horizontalCenter
}
}
...
...
src/dialogs/dialogs.pro
View file @
8dffa309
TEMPLATE
=
lib
TARGET
=
nemouxdialogs
PLUGIN_IMPORT_PATH
=
Nemo
/
Dialogs
qmlfiles
.
files
=
qmldir
...
...
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