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
64231caa
Commit
64231caa
authored
Oct 16, 2017
by
eekkelund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Controls] Add forgotten (c)
parent
85681154
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
0 deletions
+85
-0
ButtonRow.qml
src/controls/qml/ButtonRow.qml
+1
-0
SliderStyle.qml
src/styles/SliderStyle.qml
+84
-0
No files found.
src/controls/qml/ButtonRow.qml
View file @
64231caa
...
...
@@ -2,6 +2,7 @@
**
** Copyright (C) 2014 Aleksi Suomalainen <suomalainen.aleksi@gmail.com>
** Copyright (C) 2017 Sergey Chupligin <neochapay@gmail.com>
** Copyright (C) 2017 Eetu Kahelin
** All rights reserved.
**
** You may use this file under the terms of BSD license as follows:
...
...
src/styles/SliderStyle.qml
0 → 100644
View file @
64231caa
/*
* Copyright (C) 2013 Andrea Bernabei <and.bernabei@gmail.com>
* Copyright (C) 2017 Chupligin Sergey <mail@neochapay.ru>
* Copyright (C) 2017 Eetu Kahelin
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
import
QtQuick
2.6
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
SliderStyle
{
handle
:
Rectangle
{
id
:
handle
anchors.centerIn
:
parent
color
:
Theme
.
backgroundColor
border.color
:
Theme
.
accentColor
border.width
:
2
implicitWidth
:
Theme
.
itemHeightExtraSmall
implicitHeight
:
Theme
.
itemHeightExtraSmall
radius
:
implicitHeight
/
2
visible
:
control
.
enabled
Text
{
id
:
valueLabel
anchors.centerIn
:
parent
text
:
parseInt
(
control
.
value
)
visible
:
control
.
showValue
color
:
Theme
.
textColor
font.pixelSize
:
control
.
valueFontSize
}
}
groove
:
Rectangle
{
id
:
grove
implicitHeight
:
Theme
.
itemHeightExtraSmall
/
2
implicitWidth
:
Theme
.
itemWidthLarge
+
Theme
.
itemWidthSmall
color
:
Theme
.
fillDarkColor
z
:
1
Rectangle
{
id
:
dataLine
height
:
parent
.
height
width
:
styleData
.
handlePosition
color
:
Theme
.
accentColor
}
Image
{
id
:
disabledImg
anchors.fill
:
parent
visible
:
!
control
.
enabled
source
:
"
images/disabled-overlay.png
"
fillMode
:
Image
.
Tile
}
Image
{
id
:
left
anchors
{
right
:
dataLine
.
right
verticalCenter
:
dataLine
.
verticalCenter
}
source
:
"
images/slider-handle-left.svg
"
height
:
Theme
.
itemHeightExtraSmall
visible
:
control
.
enabled
width
:
(
styleData
.
handlePosition
>
Theme
.
itemHeightHuge
)
?
Theme
.
itemHeightHuge
:
styleData
.
handlePosition
sourceSize.width
:
width
sourceSize.height
:
height
}
}
}
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