summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxmouseregion_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-24 06:15:38 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-24 06:15:38 (GMT)
commit0085b442847e02564e49b339cd2e78eb70489c86 (patch)
treec21a3cf95c5b6b062ff77f538fe1c7cb498ed9ed /src/declarative/fx/qfxmouseregion_p.h
parentb979a3d96d63e869fb0d7db55b891d557eecd35f (diff)
downloadQt-0085b442847e02564e49b339cd2e78eb70489c86.zip
Qt-0085b442847e02564e49b339cd2e78eb70489c86.tar.gz
Qt-0085b442847e02564e49b339cd2e78eb70489c86.tar.bz2
Fix onFooPressed key handlers.
Diffstat (limited to 'src/declarative/fx/qfxmouseregion_p.h')
-rw-r--r--src/declarative/fx/qfxmouseregion_p.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/declarative/fx/qfxmouseregion_p.h b/src/declarative/fx/qfxmouseregion_p.h
index 70df8d1..caed2ab 100644
--- a/src/declarative/fx/qfxmouseregion_p.h
+++ b/src/declarative/fx/qfxmouseregion_p.h
@@ -85,15 +85,8 @@ public:
bool isConnected(const char *signal) {
Q_Q(QFxMouseRegion);
- int idx = QFxMouseRegion::staticMetaObject.indexOfSignal(signal);
- if (idx < 32) {
- quint32 mask = 1 << idx;
- return QObjectPrivate::get(q)->connectedSignals[0] & mask;
- } else if (idx < 64) {
- quint32 mask = 1 << (idx-32);
- return QObjectPrivate::get(q)->connectedSignals[1] & mask;
- }
- return false;
+ int idx = QObjectPrivate::get(q)->signalIndex(signal);
+ return QObjectPrivate::get(q)->isSignalConnected(idx);
}
bool absorb : 1;