diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 155e9bb0..7dcbc2c2 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -114,20 +114,6 @@ void MainWindow::initUI()
QTabBar *centralbar = ui->centralTabWidget->tabBar();
centralbar->setVisible(false);
- // Sepparator between back/forward and undo/redo buttons
- QWidget *spacer4 = new QWidget();
- spacer4->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
- spacer4->setMinimumSize(10, 10);
- ui->mainToolBar->insertWidget(ui->actionForward, spacer4);
- ui->actionForward->setIcon(QIcon(new SvgIconEngine(QString(":/img/icons/arrow_right.svg"))));
-
- // Popup menu on theme toolbar button
- QToolButton *backButton = new QToolButton(this);
- backButton->setIcon(QIcon(new SvgIconEngine(QString(":/img/icons/arrow_left.svg"))));
- //backButton->setPopupMode(QToolButton::DelayedPopup);
- ui->mainToolBar->insertWidget(ui->actionForward, backButton);
- connect(backButton, SIGNAL(clicked()), this, SLOT(backButton_clicked()));
-
// Sepparator between undo/redo and goto lineEdit
QWidget *spacer3 = new QWidget();
spacer3->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
@@ -508,11 +494,6 @@ void MainWindow::toggleDockWidget(QDockWidget *dock_widget, bool show)
}
}
-void MainWindow::backButton_clicked()
-{
- core->seekPrev();
-}
-
void MainWindow::restoreDocks()
{
// In the upper half the functions are the first widget
@@ -688,16 +669,6 @@ void MainWindow::on_actionSaveAs_triggered()
saveProjectAs();
}
-void MainWindow::on_actionUndoSeek_triggered()
-{
- Core()->seekPrev();
-}
-
-void MainWindow::on_actionRedoSeek_triggered()
-{
- Core()->seekNext();
-}
-
void MainWindow::on_actionRun_Script_triggered()
{
QFileDialog dialog(this);
@@ -749,9 +720,24 @@ void MainWindow::on_actionQuit_triggered()
close();
}
+void MainWindow::on_actionBackward_triggered()
+{
+ Core()->seekPrev();
+}
+
void MainWindow::on_actionForward_triggered()
{
- core->seekNext();
+ Core()->seekNext();
+}
+
+void MainWindow::on_actionUndoSeek_triggered()
+{
+ Core()->seekPrev();
+}
+
+void MainWindow::on_actionRedoSeek_triggered()
+{
+ Core()->seekNext();
}
void MainWindow::on_actionDisasAdd_comment_triggered()
diff --git a/src/MainWindow.h b/src/MainWindow.h
index e1691fbf..a3b534e3 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -109,8 +109,6 @@ public slots:
void toggleResponsive(bool maybe);
- void backButton_clicked();
-
private slots:
void on_actionAbout_triggered();
@@ -127,13 +125,13 @@ private slots:
void on_actionSave_triggered();
void on_actionSaveAs_triggered();
+ void on_actionBackward_triggered();
+ void on_actionForward_triggered();
void on_actionUndoSeek_triggered();
void on_actionRedoSeek_triggered();
void on_actionOpen_triggered();
- void on_actionForward_triggered();
-
void on_actionTabs_on_Top_triggered();
void on_actionReset_settings_triggered();
diff --git a/src/MainWindow.ui b/src/MainWindow.ui
index d19e92e8..519673ae 100644
--- a/src/MainWindow.ui
+++ b/src/MainWindow.ui
@@ -61,15 +61,7 @@ QToolTip {
color: rgb(232, 232, 232);
font: 11pt "Monaco";
}
-/*
-QDockWidget::title {
- background: rgb(64, 66, 68);
-}
-
-QDockWidget {
- color: rgb(232, 232, 232);
-}
-*/
+
false
@@ -282,21 +274,21 @@ border-top: 0px;
Main toolbar
- QToolButton { /* all types of tool button */
- margin-bottom: 1px;
- margin-top: 1px;
- margin-left: 2px;
- margin-right: 2px;
- padding: 2px;
- padding-left: 7px;
- padding-right: 7px;
- background-color: palette(light);
- border-radius: 6px;
+
+QToolButton {
+margin: 1px;
+margin-left: 2px;
+margin-right: 2px;
+padding: 2px;
+padding-left: 7px;
+padding-right: 7px;
+border-radius: 6px;
+background-color: #ffffff;
}
-
QToolButton:pressed {
- background-color: palette(dark);
-}
+background-color: palette(dark);
+}
+
false
@@ -316,6 +308,7 @@ QToolButton:pressed {
false
+
@@ -432,7 +425,7 @@ QToolButton:pressed {
Find previous
-
+
:/img/icons/arrow_left.svg:/img/icons/arrow_left.svg