Commit b7cf92eb authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed signal flow for global undo and redo buttons

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12686 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 76a28922
...@@ -79,13 +79,13 @@ void BackupPlugin::pluginsInitialized() { ...@@ -79,13 +79,13 @@ void BackupPlugin::pluginsInitialized() {
undoMenuAction_->setEnabled(false); undoMenuAction_->setEnabled(false);
undoMenuAction_->setStatusTip(tr("Undo the last action.")); undoMenuAction_->setStatusTip(tr("Undo the last action."));
undoMenuAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-undo.png") ); undoMenuAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-undo.png") );
connect(undoMenuAction_, SIGNAL(triggered()), this, SLOT(slotUndo()) ); connect(undoMenuAction_, SIGNAL(triggered()), this, SIGNAL( undo() ) );
redoMenuAction_ = new QAction(tr("&Redo"), this); redoMenuAction_ = new QAction(tr("&Redo"), this);
redoMenuAction_->setEnabled(false); redoMenuAction_->setEnabled(false);
redoMenuAction_->setStatusTip(tr("Redo the last action")); redoMenuAction_->setStatusTip(tr("Redo the last action"));
redoMenuAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-redo.png") ); redoMenuAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-redo.png") );
connect(redoMenuAction_, SIGNAL(triggered()), this, SLOT(slotRedo()) ); connect(redoMenuAction_, SIGNAL(triggered()), this, SIGNAL( redo() ) );
backupMenu_->addAction(undoMenuAction_); backupMenu_->addAction(undoMenuAction_);
backupMenu_->addAction(redoMenuAction_); backupMenu_->addAction(redoMenuAction_);
...@@ -100,7 +100,7 @@ void BackupPlugin::pluginsInitialized() { ...@@ -100,7 +100,7 @@ void BackupPlugin::pluginsInitialized() {
undoToolAction_->setEnabled(false); undoToolAction_->setEnabled(false);
undoToolAction_->setStatusTip(tr("Undo the last action.")); undoToolAction_->setStatusTip(tr("Undo the last action."));
undoToolAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-undo.png") ); undoToolAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-undo.png") );
connect(undoToolAction_, SIGNAL(triggered()), this, SLOT(slotUndo()) ); connect(undoToolAction_, SIGNAL(triggered()), this, SIGNAL( undo() ) );
toolbar->addAction(undoToolAction_); toolbar->addAction(undoToolAction_);
//Redo //Redo
...@@ -108,7 +108,7 @@ void BackupPlugin::pluginsInitialized() { ...@@ -108,7 +108,7 @@ void BackupPlugin::pluginsInitialized() {
redoToolAction_->setEnabled(false); redoToolAction_->setEnabled(false);
redoToolAction_->setStatusTip(tr("Redo the last action")); redoToolAction_->setStatusTip(tr("Redo the last action"));
redoToolAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-redo.png") ); redoToolAction_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-redo.png") );
connect(redoToolAction_, SIGNAL(triggered()), this, SLOT(slotRedo()) ); connect(redoToolAction_, SIGNAL(triggered()), this, SIGNAL( redo() ) );
toolbar->addAction(redoToolAction_); toolbar->addAction(redoToolAction_);
emit addToolbar( toolbar ); emit addToolbar( toolbar );
......
...@@ -135,7 +135,7 @@ private slots: ...@@ -135,7 +135,7 @@ private slots:
void slotObjectUndo(); void slotObjectUndo();
void slotObjectRedo(); void slotObjectRedo();
public slots: public slots:
QString version() { return QString("0.1"); }; QString version() { return QString("0.1"); };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment