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
8a8af5da
Commit
8a8af5da
authored
Oct 11, 2013
by
Andrea Bernabei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[button] Replace dirty hack with a better, more reliable one
parent
fb621fab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Button.qml
src/controls/Button.qml
+4
-6
controls.pro
src/controls/controls.pro
+2
-1
No files found.
src/controls/Button.qml
View file @
8a8af5da
...
...
@@ -19,11 +19,10 @@
import
QtQuick
2.1
import
QtQuick
.
Controls
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
Button
{
// XXX HACK: We are assuming we'll find Button's private mouseArea with childAt(0,0)!!!
property
variant
__buttonMouseArea
:
childAt
(
0
,
0
)
id
:
butt
property
int
pressX
:
0
property
int
pressY
:
0
...
...
@@ -33,7 +32,7 @@ Button {
// XXX HACK: Workaround for QQC Button not exposing x/y of pressed state
// We need those for Glacier's Button pressed effect
Connections
{
target
:
__buttonMouseArea
target
:
butt
.
__behavior
onPressed
:
{
pressX
=
mouse
.
x
pressY
=
mouse
.
y
...
...
@@ -43,7 +42,6 @@ Button {
pressY
=
mouse
.
y
}
}
}
src/controls/controls.pro
View file @
8a8af5da
...
...
@@ -9,7 +9,8 @@ THEME_IMPORT_PATH = QtQuick/Controls/Styles/Nemo/themes
QML_FILES
+=
\
Button
.
qml
OTHER_FILES
+=
qmldir
OTHER_FILES
+=
qmldir
\
$$
QML_FILES
HEADERS
+=
\
qquicknemocontrolsextensionplugin
.
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