~kalikiana/ubuntu-ui-toolkit/appsettings

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/plugin/ucmousefilters.cpp

  • Committer: Zsombor Egri
  • Date: 2014-04-20 19:25:12 UTC
  • mto: (700.276.32 combobutton)
  • mto: This revision was merged to the branch mainline in revision 770.
  • Revision ID: zsombor.egri@canonical.com-20140420192512-o0juovm3r2a3myyj
version set to 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
/*!
60
60
   \qmltype Mouse
61
61
   \instantiates UCMouse
62
 
   \inqmlmodule Ubuntu.Components 0.1
 
62
   \inqmlmodule Ubuntu.Components 1.0
63
63
   \ingroup ubuntu
64
64
   \brief Attached property filtering mouse events occured inside the owner.
65
65
 
97
97
   released mouse buttons would look as follows:
98
98
   \qml
99
99
   import QtQuick 2.0
100
 
   import Ubuntu.Components 0.1
 
100
   import Ubuntu.Components 1.0
101
101
 
102
102
   TextInput {
103
103
       width: 100
119
119
   Example of handling right button clicks over a TextInput:
120
120
   \qml
121
121
   import QtQuick 2.0
122
 
   import Ubuntu.Components 0.1
 
122
   import Ubuntu.Components 1.0
123
123
 
124
124
   TextInput {
125
125
       width: 100
141
141
 
142
142
   \qml
143
143
   import QtQuick 2.0
144
 
   import Ubuntu.Components 0.1
 
144
   import Ubuntu.Components 1.0
145
145
 
146
146
   TextInput {
147
147
       width: 100
201
201
   will be printed as well as the proxied mouse press from the main item.
202
202
   \qml
203
203
   import QtQuick 2.0
204
 
   import Ubuntu.Components 0.1
 
204
   import Ubuntu.Components 1.0
205
205
 
206
206
   Item {
207
207
       id: main
254
254
   will be blocked by the MouseArea still.
255
255
   \qml
256
256
   import QtQuick 2.0
257
 
   import Ubuntu.Components 0.1
 
257
   import Ubuntu.Components 1.0
258
258
 
259
259
   MouseArea {
260
260
       id: topArea
289
289
   we make sure the TextInput always receives the events before the filter:
290
290
   \qml
291
291
   import QtQuick 2.0
292
 
   import Ubuntu.Components 0.1
 
292
   import Ubuntu.Components 1.0
293
293
 
294
294
   TextInput {
295
295
       id: input
316
316
 
317
317
   \qml
318
318
   import QtQuick 2.0
319
 
   import Ubuntu.Components 0.1
 
319
   import Ubuntu.Components 1.0
320
320
 
321
321
   TextInput {
322
322
       width: units.gu(40)
954
954
/*!
955
955
   \qmltype InverseMouse
956
956
   \instantiates UCInverseMouse
957
 
   \inqmlmodule Ubuntu.Components 0.1
 
957
   \inqmlmodule Ubuntu.Components 1.0
958
958
   \ingroup ubuntu
959
959
   \brief Attached object filtering mouse events occured outside the owner.
960
960