X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Faction.h;h=3e90ca66354376d37aa9cae6099698066123c6ee;hp=325beda937e2b0bb047e1f7992e054e55375e1c6;hb=084d95e60b0fb587b1950a3e4f8ec5e4f017446c;hpb=e3bafb7a62d1123bfeee221550bca96aef769399 diff --git a/src/uisupport/action.h b/src/uisupport/action.h index 325beda9..3e90ca66 100644 --- a/src/uisupport/action.h +++ b/src/uisupport/action.h @@ -23,6 +23,8 @@ #ifndef ACTION_H_ #define ACTION_H_ +#ifndef HAVE_KDE + #include #include @@ -67,4 +69,20 @@ class Action : public QWidgetAction { Q_DECLARE_OPERATORS_FOR_FLAGS(Action::ShortcutTypes) +#else /* HAVE_KDE */ +#include + +class Action : public KAction { + Q_OBJECT + + public: + explicit Action(QObject *parent); + Action(const QString &text, QObject *parent, const QObject *receiver = 0, const char *slot = 0, const QKeySequence &shortcut = 0); + Action(const QIcon &icon, const QString &text, QObject *parent, const QObject *receiver = 0, const char *slot = 0, const QKeySequence &shortcut = 0); + + private: + void init(); +}; +#endif + #endif