X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Faction.h;h=62bc8a37178ee14106b69b69b00dc0af26c6c463;hb=fb80dab2044d302eb8ccacd0b34d4cbaf5fe904c;hp=dbef28cbb097b3dac1fae9110e8c1511e503e203;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/uisupport/action.h b/src/uisupport/action.h index dbef28cb..62bc8a37 100644 --- a/src/uisupport/action.h +++ b/src/uisupport/action.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,10 +20,7 @@ * Parts of this API have been shamelessly stolen from KDE's kaction.h * ***************************************************************************/ -#ifndef ACTION_H_ -#define ACTION_H_ - -#ifndef HAVE_KDE4 +#pragma once #include #include @@ -70,24 +67,3 @@ private slots: Q_DECLARE_OPERATORS_FOR_FLAGS(Action::ShortcutTypes) - -#else /* HAVE_KDE4 */ -#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