1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00

added test command

This commit is contained in:
Marc Zinnschlag 2012-11-22 16:00:23 +01:00
parent ed3d8b8ca2
commit 8e546ebd30
2 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,11 @@ void CSVDoc::View::setupEditMenu()
QAction *redo = mDocument->getUndoStack().createRedoAction (this, tr("&Redo")); QAction *redo = mDocument->getUndoStack().createRedoAction (this, tr("&Redo"));
redo->setShortcuts (QKeySequence::Redo); redo->setShortcuts (QKeySequence::Redo);
edit->addAction (redo); edit->addAction (redo);
// test
QAction *test = new QAction (tr ("&Test Command"), this);
connect (test, SIGNAL (triggered()), this, SLOT (test()));
edit->addAction (test);
} }
void CSVDoc::View::setupViewMenu() void CSVDoc::View::setupViewMenu()
@ -88,3 +93,8 @@ void CSVDoc::View::newView()
{ {
mViewManager.addView (mDocument); mViewManager.addView (mDocument);
} }
void CSVDoc::View::test()
{
mDocument->getUndoStack().push (new QUndoCommand());
}

View File

@ -53,6 +53,8 @@ namespace CSVDoc
private slots: private slots:
void newView(); void newView();
void test();
}; };
} }