summaryrefslogtreecommitdiff
path: root/src/controls/qquickaction_p.h
diff options
context:
space:
mode:
authorDaiwei Li <daiweili@suitabletech.com>2013-09-18 16:20:18 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 15:17:29 +0200
commit7adeff65148a3967af7b2ec44764a2c275dcd3fe (patch)
tree0345cc58792ec7cd1247696cb6c9b82afba25e7a /src/controls/qquickaction_p.h
parent2aa8ea6850087680af18e14d93bfe40a894607a5 (diff)
downloadqtquickcontrols-7adeff65148a3967af7b2ec44764a2c275dcd3fe.tar.gz
Add source QObject to QQuickAction's triggered signal
Based on a suggestion from Gabriel de Dietrich. Knowing the source object that triggered an action is useful for analytics purposes. Change-Id: I11f62214fa669a91769a0ce25b0c11c0fc0635d0 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/qquickaction_p.h')
-rw-r--r--src/controls/qquickaction_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controls/qquickaction_p.h b/src/controls/qquickaction_p.h
index 373627d1..8c81e71b 100644
--- a/src/controls/qquickaction_p.h
+++ b/src/controls/qquickaction_p.h
@@ -114,10 +114,10 @@ public:
bool event(QEvent *e);
public Q_SLOTS:
- void trigger();
+ void trigger(QObject *source = 0);
Q_SIGNALS:
- void triggered();
+ void triggered(QObject *source = 0);
void toggled(bool checked);
void textChanged();