summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qactiongroup_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qactiongroup_p.h')
-rw-r--r--src/gui/kernel/qactiongroup_p.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/gui/kernel/qactiongroup_p.h b/src/gui/kernel/qactiongroup_p.h
new file mode 100644
index 0000000000..ba939a2b10
--- /dev/null
+++ b/src/gui/kernel/qactiongroup_p.h
@@ -0,0 +1,57 @@
+// Copyright (C) 2019 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+#ifndef QGUIACTIONGROUP_P_H
+#define QGUIACTIONGROUP_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists for the convenience
+// of other Qt classes. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtGui/private/qtguiglobal_p.h>
+#include <QtGui/qactiongroup.h>
+#include <QtGui/qfont.h>
+#if QT_CONFIG(shortcut)
+# include <QtGui/private/qshortcutmap_p.h>
+#endif
+
+#include <QtCore/qpointer.h>
+#include "private/qobject_p.h"
+
+QT_REQUIRE_CONFIG(action);
+
+QT_BEGIN_NAMESPACE
+
+class Q_GUI_EXPORT QActionGroupPrivate : public QObjectPrivate
+{
+ Q_DECLARE_PUBLIC(QActionGroup)
+public:
+ enum Signal { Triggered, Hovered };
+
+ QActionGroupPrivate();
+ ~QActionGroupPrivate();
+
+ virtual void emitSignal(Signal, QAction *) {}
+
+ QList<QAction *> actions;
+ QPointer<QAction> current;
+ uint enabled : 1;
+ uint visible : 1;
+ QActionGroup::ExclusionPolicy exclusionPolicy = QActionGroup::ExclusionPolicy::Exclusive;
+
+private:
+ void _q_actionTriggered(); //private slot
+ void _q_actionChanged(); //private slot
+ void _q_actionHovered(); //private slot
+};
+
+QT_END_NAMESPACE
+
+#endif // QACTIONGROUP_P_H