summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Tinkl <lukas@kde.org>2015-01-28 16:44:42 (GMT)
committerLukáš Tinkl <lukas@kde.org>2015-01-28 16:44:42 (GMT)
commitec8c2900ff518330a85f67f9f13bde50db224540 (patch)
tree5bfe81535bd600279924da6903b9682e8ed6a43c
parent413bb725f5b82e3735c6c1d5c9d51cc12f9ca09d (diff)
fix/restore the Selection Tools functionality in the toolbar
-rw-r--r--ui/toolaction.cpp2
-rw-r--r--ui/toolaction.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/ui/toolaction.cpp b/ui/toolaction.cpp
index 63b97c1..5928874 100644
--- a/ui/toolaction.cpp
+++ b/ui/toolaction.cpp
@@ -16,7 +16,7 @@
#include <KLocalizedString>
ToolAction::ToolAction( QObject *parent )
- : QAction( parent )
+ : KSelectAction( parent )
{
setText( i18n( "Selection Tools" ) );
}
diff --git a/ui/toolaction.h b/ui/toolaction.h
index f690a1e..092961b 100644
--- a/ui/toolaction.h
+++ b/ui/toolaction.h
@@ -13,11 +13,11 @@
#include <qlist.h>
#include <qpointer.h>
-#include <qaction.h>
+#include <KSelectAction>
class QToolButton;
-class ToolAction : public QAction
+class ToolAction : public KSelectAction
{
Q_OBJECT
@@ -28,7 +28,7 @@ class ToolAction : public QAction
void addAction( QAction *action );
protected:
- virtual QWidget* createWidget( QWidget *parent );
+ QWidget* createWidget( QWidget *parent ) Q_DECL_OVERRIDE;
private slots:
void slotNewDefaultAction( QAction *action );