]> cloud.milkyroute.net Git - dolphin.git/commitdiff
clear the status bar when doing an undo operation
authorPeter Penz <peter.penz19@gmail.com>
Wed, 31 Jan 2007 22:14:46 +0000 (22:14 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 31 Jan 2007 22:14:46 +0000 (22:14 +0000)
svn path=/trunk/playground/utils/dolphin/; revision=628910

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index fa98354804d88d4098bf49965d842b05835e5f62..a2f99a243b54ca60e25563b23edf29922021b1da 100644 (file)
@@ -488,6 +488,12 @@ void DolphinMainWindow::slotUndoTextChanged(const QString& text)
     }\r
 }\r
 \r
     }\r
 }\r
 \r
+void DolphinMainWindow::undo()\r
+{\r
+    clearStatusBar();\r
+    KonqUndoManager::self()->undo();\r
+}\r
+\r
 void DolphinMainWindow::cut()\r
 {\r
     QMimeData* mimeData = new QMimeData();\r
 void DolphinMainWindow::cut()\r
 {\r
     QMimeData* mimeData = new QMimeData();\r
@@ -973,7 +979,7 @@ void DolphinMainWindow::setupActions()
     KStandardAction::quit(this, SLOT(quit()), actionCollection());\r
 \r
     // setup 'Edit' menu\r
     KStandardAction::quit(this, SLOT(quit()), actionCollection());\r
 \r
     // setup 'Edit' menu\r
-    KStandardAction::undo(KonqUndoManager::self(),\r
+    KStandardAction::undo(this,\r
                           SLOT(undo()),\r
                           actionCollection());\r
 \r
                           SLOT(undo()),\r
                           actionCollection());\r
 \r
index 2d11480a9e1542edac5503c7b0255324027f98e1..bc285a4db4c617cc7211ecb305c434451758477c 100644 (file)
@@ -171,6 +171,9 @@ private slots:
     /** Sets the text of the 'Undo' menu action to \a text. */
     void slotUndoTextChanged(const QString& text);
 
     /** Sets the text of the 'Undo' menu action to \a text. */
     void slotUndoTextChanged(const QString& text);
 
+    /** Performs the current undo operation. */
+    void undo();
+
     /**
      * Copies all selected items to the clipboard and marks
      * the items as cutted.
     /**
      * Copies all selected items to the clipboard and marks
      * the items as cutted.