aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickaction_p_p.h
diff options
context:
space:
mode:
authorJoni Poikelin <joni.poikelin@qt.io>2017-12-12 14:25:48 +0200
committerJoni Poikelin <joni.poikelin@qt.io>2017-12-13 07:45:33 +0000
commit3688d440ab22c5887dd5f5e85de561f5571ea6ba (patch)
treea68f3d28acc92f853e69663455bc69b5a62bee35 /src/quicktemplates2/qquickaction_p_p.h
parent43719398070b799c54e095724691bb5a9339cefa (diff)
Fix double toggling through Action with checked AbstractButton
Action caused checked state of the button to be reset back to its original value if checked status had been change through click or key press. To avoid this, separate private function has been added to that does not change the status. Task-number: QTBUG-65108 Change-Id: I8a5aaa9aab739db3ba10d0202f5fb718cc7195bd Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickaction_p_p.h')
-rw-r--r--src/quicktemplates2/qquickaction_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickaction_p_p.h b/src/quicktemplates2/qquickaction_p_p.h
index 08c442ed..331bcb65 100644
--- a/src/quicktemplates2/qquickaction_p_p.h
+++ b/src/quicktemplates2/qquickaction_p_p.h
@@ -87,6 +87,8 @@ public:
bool handleShortcutEvent(QObject *object, QShortcutEvent *event);
+ void trigger(QObject*, bool doToggle);
+
class ShortcutEntry
{
public: