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
433cbec8
Commit
433cbec8
authored
Jan 26, 2017
by
Aleksi Suomalainen
Committed by
GitHub
Jan 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33 from neochapay/master
Update ButtonRow and fix CheckBox style
parents
7606980a
b7eb4320
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
19 deletions
+27
-19
qtquickcontrols-nemo.spec
rpm/qtquickcontrols-nemo.spec
+1
-1
ButtonRow.qml
src/controls/ButtonRow.qml
+19
-17
CheckBoxStyle.qml
src/styles/CheckBoxStyle.qml
+6
-0
styles.pro
src/styles/styles.pro
+1
-1
No files found.
rpm/qtquickcontrols-nemo.spec
View file @
433cbec8
Name: qt5-qtquickcontrols-nemo
Name: qt5-qtquickcontrols-nemo
Summary: Nemomobile Qt Quick Controls
Summary: Nemomobile Qt Quick Controls
Version: 5.1.
0
Version: 5.1.
1
Release: nemo1
Release: nemo1
Group: Qt/Qt
Group: Qt/Qt
License: LGPLv2.1 with exception or GPLv3
License: LGPLv2.1 with exception or GPLv3
...
...
src/controls/ButtonRow.qml
View file @
433cbec8
...
@@ -50,14 +50,20 @@ Rectangle {
...
@@ -50,14 +50,20 @@ Rectangle {
Rectangle
{
Rectangle
{
id
:
selecter
id
:
selecter
height
:
5
0
x
:
rowElement
.
children
[
main
.
currentIndex
].
x
||
0
y
:
-
5
y
:
-
5
width
:
rowElement
.
children
[
main
.
currentIndex
].
width
||
0
height
:
50
color
:
"
#0091e5
"
color
:
"
#0091e5
"
z
:
0
visible
:
false
visible
:
main
.
currentIndex
>
-
1
anchors
{
top
:
rowElement
.
top
Behavior
on
x
{
topMargin
:
-
5
NumberAnimation
{
duration
:
200
}
}
Behavior
on
width
{
NumberAnimation
{
duration
:
200
}
}
}
}
}
...
@@ -69,36 +75,32 @@ Rectangle {
...
@@ -69,36 +75,32 @@ Rectangle {
delegate
:
Rectangle
{
delegate
:
Rectangle
{
id
:
rowItem
id
:
rowItem
height
:
50
height
:
50
y
:
-
5
width
:
text
.
width
+
(
text
.
width
/
name
.
length
*
2
)
width
:
text
.
width
+
(
text
.
width
/
name
.
length
*
2
)
y
:
-
5
color
:
"
transparent
"
color
:
"
transparent
"
MouseArea
{
MouseArea
{
enabled
:
main
.
enabled
width
:
parent
.
width
width
:
parent
.
width
height
:
parent
.
height
height
:
parent
.
height
enabled
:
main
.
enabled
onClicked
:
{
onClicked
:
{
main
.
currentIndex
=
index
main
.
currentIndex
=
index
selecter
.
visible
=
true
moveSelecter
.
start
()
}
}
}
}
Label
{
Label
{
id
:
text
id
:
text
text
:
name
text
:
name
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.horizontalCenter
:
parent
.
horizontalCenter
Component.onCompleted
:
{
Component.onCompleted
:
{
width
=
paintedWidth
width
=
paintedWidth
}
}
z
:
1
font.bold
:
main
.
currentIndex
==
index
font.bold
:
main
.
currentIndex
==
index
}
}
ParallelAnimation
{
id
:
moveSelecter
NumberAnimation
{
target
:
selecter
;
property
:
"
x
"
;
from
:
selecter
.
x
;
to
:
rowItem
.
x
;
duration
:
100
}
NumberAnimation
{
target
:
selecter
;
property
:
"
width
"
;
from
:
selecter
.
width
;
to
:
rowItem
.
width
;
duration
:
100
}
}
}
}
}
}
}
}
...
...
src/styles/CheckBoxStyle.qml
View file @
433cbec8
...
@@ -77,6 +77,12 @@ CheckBoxStyle {
...
@@ -77,6 +77,12 @@ CheckBoxStyle {
}
}
}
}
Component.onCompleted
:
{
back1
.
opacity
=
control
.
checked
?
1
:
0
back2
.
opacity
=
control
.
checked
?
0
:
1
ball
.
x
=
control
.
checked
?
32
:
0
}
SequentialAnimation
{
SequentialAnimation
{
id
:
anim1
id
:
anim1
running
:
false
running
:
false
...
...
src/styles/styles.pro
View file @
433cbec8
...
@@ -73,7 +73,7 @@ themes.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH/themes
...
@@ -73,7 +73,7 @@ themes.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH/themes
images.files = $$_PRO_FILE_PWD_/images
/*
.svg\
images.files = $$_PRO_FILE_PWD_/images
/*
.svg\
$$_PRO_FILE_PWD_/images
/*
.png
$$_PRO_FILE_PWD_/images
/*
.png
images.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
images.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
/images/
HEADERS += \
HEADERS += \
qquicknemostyleextensionplugin.h \
qquicknemostyleextensionplugin.h \
...
...
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