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
7ee2f97c
Commit
7ee2f97c
authored
Oct 08, 2013
by
Andrea Bernabei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[styles] Added ToolButtonStyle
parent
4ca99877
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
ToolButtonStyle.qml
src/styles/ToolButtonStyle.qml
+30
-2
No files found.
src/styles/ToolButtonStyle.qml
View file @
7ee2f97c
...
...
@@ -18,8 +18,36 @@
*/
import
QtQuick
2.1
import
QtQuick
.
Controls
.
Styles
.
Private
1.0
import
QtQuick
.
Controls
1.0
import
QtQuick
.
Controls
.
Private
1.0
ToolButtonStyle
{
// TODO: USE ToolButtonStyle from official QQC!
// ToolButtonStyle is private in QQC 5.1.0
Style
{
readonly
property
ToolButton
control
:
__control
property
Component
panel
:
Item
{
id
:
styleitem
//TODO: Maybe we want to add a descriptive text at the bottom of the icon?
implicitWidth
:
50
implicitHeight
:
50
opacity
:
control
.
pressed
?
0.5
:
1
Text
{
id
:
label
visible
:
icon
.
status
!=
Image
.
Ready
anchors.centerIn
:
parent
text
:
control
.
text
}
Image
{
id
:
icon
anchors.fill
:
parent
anchors.margins
:
8
source
:
control
.
iconSource
}
}
}
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