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

List:       kde-commits
Subject:    [kdepimlibs/calendaring] akonadi/calendar: Make these a slot.
From:       Sergio Martins <iamsergio () gmail ! com>
Date:       2012-08-01 21:35:11
Message-ID: 20120801213511.501D1A6094 () git ! kde ! org
[Download RAW message or body]

Git commit 8fc36ea695cf51f8cf54d5b2fabd60f3ac77fd3a by Sergio Martins.
Committed on 01/08/2012 at 23:32.
Pushed by smartins into branch 'calendaring'.

Make these a slot.

KStandardAction needs them to be.

M  +28   -29   akonadi/calendar/history.h

http://commits.kde.org/kdepimlibs/8fc36ea695cf51f8cf54d5b2fabd60f3ac77fd3a

diff --git a/akonadi/calendar/history.h b/akonadi/calendar/history.h
index b97adde..dfcb11f 100644
--- a/akonadi/calendar/history.h
+++ b/akonadi/calendar/history.h
@@ -56,7 +56,6 @@ class IncidenceChanger;
 class AKONADI_CALENDAR_EXPORT History : public QObject {
   Q_OBJECT
   public:
-
     /**
      * This enum describes the possible result codes (success/error values)
      * for an undo or redo operation.
@@ -141,34 +140,6 @@ class AKONADI_CALENDAR_EXPORT History : public QObject {
     QString lastErrorString() const;
 
     /**
-     * Reverts the change that's ontop of the undo stack.
-     * Can't be called if there's an undo/redo operation running, Q_ASSERTs.
-     * Can be called if the stack is empty, in this case, nothing happens.
-     * This function is async, listen to signal undone() to know when the operation finishes.
-     *
-     * @param parent will be passed to dialogs created by IncidenceChanger, for example
-     *        those which ask if you want to send invitations.
-     *
-     * @see redo()
-     * @see undone()
-     */
-    void undo( QWidget *parent = 0 );
-
-    /**
-     * Reverts the change that's ontop of the redo stack.
-     * Can't be called if there's an undo/redo operation running, Q_ASSERTs.
-     * Can be called if the stack is empty, in this case, nothing happens.
-     * This function is async, listen to signal redone() to know when the operation finishes.
-     *
-     * @param parent will be passed to dialogs created by IncidenceChanger, for example
-     *        those which ask if you want to send invitations.
-     *
-     * @see undo()
-     * @see redone()
-     */
-    void redo( QWidget *parent = 0 );
-
-    /**
      * Reverts every change in the undostack.
      *
      * @param parent will be passed to dialogs created by IncidenceChanger, for example
@@ -215,6 +186,34 @@ class AKONADI_CALENDAR_EXPORT History : public QObject {
      */
     bool clear();
 
+    /**
+     * Reverts the change that's ontop of the undo stack.
+     * Can't be called if there's an undo/redo operation running, Q_ASSERTs.
+     * Can be called if the stack is empty, in this case, nothing happens.
+     * This function is async, listen to signal undone() to know when the operation finishes.
+     *
+     * @param parent will be passed to dialogs created by IncidenceChanger, for example
+     *        those which ask if you want to send invitations.
+     *
+     * @see redo()
+     * @see undone()
+     */
+    void undo( QWidget *parent = 0 );
+
+    /**
+     * Reverts the change that's ontop of the redo stack.
+     * Can't be called if there's an undo/redo operation running, Q_ASSERTs.
+     * Can be called if the stack is empty, in this case, nothing happens.
+     * This function is async, listen to signal redone() to know when the operation finishes.
+     *
+     * @param parent will be passed to dialogs created by IncidenceChanger, for example
+     *        those which ask if you want to send invitations.
+     *
+     * @see undo()
+     * @see redone()
+     */
+    void redo( QWidget *parent = 0 );
+
   Q_SIGNALS:
     /**
      * This signal is emitted when an undo operation finishes.
[prev in list] [next in list] [prev in thread] [next in thread] 

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