summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. Narvaez <[email protected]>2015-06-02 07:15:34 -0400
committerDavid E. Narvaez <[email protected]>2015-06-02 08:35:11 -0400
commita775464de1fdb10b92a63c294a76db0b4c45ec37 (patch)
treece7e7e1f5caefe6143ecf43d7e6a847545a39c1f
parent45fc5aa725d896c82a0b6d215f2f8f56356289b1 (diff)
Port away from KUndoStack
-rw-r--r--kig/kig_part.cpp8
-rw-r--r--kig/kig_part.h3
2 files changed, 5 insertions, 6 deletions
diff --git a/kig/kig_part.cpp b/kig/kig_part.cpp
index 7253a79..55b8b28 100644
--- a/kig/kig_part.cpp
+++ b/kig/kig_part.cpp
@@ -62,9 +62,9 @@
#include <kstandardaction.h>
#include <ktoggleaction.h>
#include <ktogglefullscreenaction.h>
-#include <kundostack.h>
#include <kdeprintdialog.h>
#include <kprintpreview.h>
+#include <KUndoActions>
#include <KPluginFactory>
#include <KIconEngine>
@@ -222,9 +222,9 @@ KigPart::KigPart( QWidget *parentWidget, QObject *parent,
setupTypes();
// construct our command history
- mhistory = new KUndoStack();
- mhistory->createUndoAction( actionCollection() );
- mhistory->createRedoAction( actionCollection() );
+ mhistory = new QUndoStack();
+ KUndoActions::createUndoAction( mhistory, actionCollection() );
+ KUndoActions::createRedoAction( mhistory, actionCollection() );
connect( mhistory, SIGNAL( cleanChanged( bool ) ), this, SLOT( setHistoryClean( bool ) ) );
// we are read-write by default
diff --git a/kig/kig_part.h b/kig/kig_part.h
index 5ecf542..1edabb3 100644
--- a/kig/kig_part.h
+++ b/kig/kig_part.h
@@ -31,7 +31,6 @@
class KAboutData;
class KToggleAction;
-class KUndoStack;
class QUndoStack;
class QWidget;
class QPrinter;
@@ -212,7 +211,7 @@ protected:
/**
* the command history
*/
- KUndoStack* mhistory;
+ QUndoStack* mhistory;
public:
// actions: this is an annoying case, didn't really fit into my