Changeset View
Changeset View
Standalone View
Standalone View
plugin/libdbusmenuqt/dbusmenushortcut_p.h
Show All 16 Lines | 1 | /* This file is part of the dbusmenu-qt library | |||
---|---|---|---|---|---|
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
19 | Boston, MA 02110-1301, USA. | 19 | Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | #ifndef DBUSMENUSHORTCUT_H | 21 | #ifndef DBUSMENUSHORTCUT_H | ||
22 | #define DBUSMENUSHORTCUT_H | 22 | #define DBUSMENUSHORTCUT_H | ||
23 | 23 | | |||
24 | // Qt | 24 | // Qt | ||
25 | #include <QtCore/QMetaType> | 25 | #include <QMetaType> | ||
26 | #include <QtCore/QStringList> | 26 | #include <QStringList> | ||
27 | 27 | | |||
28 | class QKeySequence; | 28 | class QKeySequence; | ||
29 | 29 | | |||
30 | class DBusMenuShortcut : public QList<QStringList> | 30 | class DBusMenuShortcut : public QList<QStringList> | ||
31 | { | 31 | { | ||
32 | public: | 32 | public: | ||
33 | QKeySequence toKeySequence() const; | 33 | QKeySequence toKeySequence() const; | ||
34 | static DBusMenuShortcut fromKeySequence(const QKeySequence&); | 34 | static DBusMenuShortcut fromKeySequence(const QKeySequence&); | ||
35 | }; | 35 | }; | ||
36 | 36 | | |||
37 | Q_DECLARE_METATYPE(DBusMenuShortcut) | 37 | Q_DECLARE_METATYPE(DBusMenuShortcut) | ||
38 | 38 | | |||
39 | #endif /* DBUSMENUSHORTCUT_H */ | 39 | #endif /* DBUSMENUSHORTCUT_H */ |