Changeset 1552
- Timestamp:
- 02/06/10 22:44:02 (3 years ago)
- Location:
- branches/undo/gui/src
- Files:
-
- 2 modified
-
MainForm.cpp (modified) (1 diff)
-
UndoActions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/undo/gui/src/MainForm.cpp
r1550 r1552 263 263 //~ FILE menu 264 264 265 // U NDO MENU ( just to test undo stuff...)265 // Undo menu 266 266 QMenu *m_pUndoMenu = m_pMenubar->addMenu( trUtf8( "U&ndo" ) ); 267 267 m_pUndoMenu->addAction( trUtf8( "Undo" ), this, SLOT( action_undo() ), QKeySequence( "Ctrl+Z" ) ); -
branches/undo/gui/src/UndoActions.h
r1550 r1552 19 19 20 20 21 //=====================================================================================================================================22 //test commands23 class TestAction : public QUndoCommand24 {25 public:26 TestAction( const QString &text)27 : m_text(text) { setText("append text"); }28 virtual void undo()29 { qDebug() << "Undo " << m_text; }30 virtual void redo()31 { qDebug() << "Redo " << m_text; }32 private:33 QString m_text;34 };35 36 //~test commands37 21 //===================================================================================================================================== 38 22 //song editor commands