[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/utils/dolphin/src
From:       Peter Penz <peter.penz () gmx ! at>
Date:       2007-01-31 22:14:52
Message-ID: 1170281692.242195.8797.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 628910 by ppenz:

clear the status bar when doing an undo operation

 M  +7 -1      dolphinmainwindow.cpp  
 M  +3 -0      dolphinmainwindow.h  


--- trunk/playground/utils/dolphin/src/dolphinmainwindow.cpp #628909:628910
@@ -488,6 +488,12 @@
     }
 }
 
+void DolphinMainWindow::undo()
+{
+    clearStatusBar();
+    KonqUndoManager::self()->undo();
+}
+
 void DolphinMainWindow::cut()
 {
     QMimeData* mimeData = new QMimeData();
@@ -973,7 +979,7 @@
     KStandardAction::quit(this, SLOT(quit()), actionCollection());
 
     // setup 'Edit' menu
-    KStandardAction::undo(KonqUndoManager::self(),
+    KStandardAction::undo(this,
                           SLOT(undo()),
                           actionCollection());
 
--- trunk/playground/utils/dolphin/src/dolphinmainwindow.h #628909:628910
@@ -171,6 +171,9 @@
     /** 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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic