diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 32af0ba02..10a9ee8ba 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -92,7 +92,7 @@ MainWindow::MainWindow(QWidget *parent) helpLabel = new QLabel(QObject::tr("Create new pattern piece to start working.")); ui->statusBar->addWidget(helpLabel); - ToolBarZoom(); + ToolBarTools(); pattern = new VContainer(); @@ -1048,7 +1048,7 @@ void MainWindow::ToolBarDraws() ui->actionLayout->setEnabled(false); } -void MainWindow::ToolBarZoom() +void MainWindow::ToolBarTools() { /*First we will try use Standard Shortcuts from Qt, but because keypad "-" and "+" not the same keys like in main keypad, shortcut Ctrl+"-" or "+" from keypad will not working with standard shortcut (QKeySequence::ZoomIn or @@ -2086,11 +2086,13 @@ void MainWindow::CreateMenus() undoAction->setShortcuts(QKeySequence::Undo); undoAction->setIcon(QIcon::fromTheme("edit-undo")); ui->menuDrawing->insertAction(ui->actionPattern_properties, undoAction); + ui->toolBarTools->addAction(undoAction); QAction *redoAction = qApp->getUndoStack()->createRedoAction(this, tr("&Redo")); redoAction->setShortcuts(QKeySequence::Redo); redoAction->setIcon(QIcon::fromTheme("edit-redo")); ui->menuDrawing->insertAction(ui->actionPattern_properties, redoAction); + ui->toolBarTools->addAction(redoAction); separatorAct = new QAction(this); separatorAct->setSeparator(true); diff --git a/src/app/mainwindow.h b/src/app/mainwindow.h index a0f288aa7..937972521 100644 --- a/src/app/mainwindow.h +++ b/src/app/mainwindow.h @@ -219,7 +219,7 @@ private: bool guiEnabled; void ToolBarOption(); void ToolBarDraws(); - void ToolBarZoom(); + void ToolBarTools(); void InitToolButtons(); void CancelTool(); void ArrowTool(); diff --git a/src/app/mainwindow.ui b/src/app/mainwindow.ui index 3cab66be0..3bce59e51 100644 --- a/src/app/mainwindow.ui +++ b/src/app/mainwindow.ui @@ -699,7 +699,7 @@ - + @@ -767,9 +767,9 @@ false - + - toolBar_2 + Toolbar tools TopToolBarArea @@ -1057,11 +1057,11 @@ Zoom out - + Edit pattern XML code - +