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
2afe7cac
Commit
2afe7cac
authored
Jan 17, 2017
by
Aleksi Suomalainen
Committed by
GitHub
Jan 17, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #30 from neochapay/master
Update buttonRow component
parents
da72638a
8b5fc701
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
.gitignore
.gitignore
+10
-1
Button.qml
src/controls/Button.qml
+4
-0
ButtonRow.qml
src/controls/ButtonRow.qml
+8
-2
Checkbox.qml
src/controls/Checkbox.qml
+2
-1
No files found.
.gitignore
View file @
2afe7cac
*.pro.user
*.pyc
.directory
*.o
*.so
moc_*
qrc_*
examples/touch/touch_nemo
Makefile
installroot/
RPMS/
\ No newline at end of file
src/controls/Button.qml
View file @
2afe7cac
...
...
@@ -20,6 +20,8 @@
import
QtQuick
2.1
import
QtQuick
.
Controls
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
Button
{
id
:
butt
...
...
@@ -42,6 +44,8 @@ Button {
pressY
=
mouse
.
y
}
}
style
:
ButtonStyle
{}
}
src/controls/ButtonRow.qml
View file @
2afe7cac
...
...
@@ -34,7 +34,7 @@ import QtQuick.Controls.Styles.Nemo 1.0
Rectangle
{
id
:
main
width
:
440
width
:
childrenRect
.
width
color
:
"
#313131
"
height
:
40
property
ListModel
model
:
ListModel
{}
...
...
@@ -55,7 +55,9 @@ Rectangle {
Rectangle
{
property
bool
active
:
false
height
:
50
width
:
20
*
name
.
length
y
:
-
5
width
:
text
.
width
+
(
text
.
width
/
name
.
length
*
2
)
color
:
"
transparent
"
MouseArea
{
enabled
:
main
.
enabled
...
...
@@ -77,6 +79,10 @@ Rectangle {
Label
{
id
:
text
text
:
name
anchors.horizontalCenter
:
parent
.
horizontalCenter
Component.onCompleted
:
{
width
=
paintedWidth
}
}
}
}
...
...
src/controls/Checkbox.qml
View file @
2afe7cac
import
QtQuick
2.1
import
QtQuick
.
Controls
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
CheckBox
{
style
:
CheckBoxStyle
{}
}
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