Warning removing

This commit is contained in:
xarkes 2017-09-02 10:46:48 +02:00
parent 2e79090a11
commit 7e493f6cb4
5 changed files with 18 additions and 9 deletions

View File

@ -149,7 +149,7 @@ void MainWindow::initUI()
backButton->setIcon(QIcon(":/img/icons/arrow_left.svg"));
//backButton->setPopupMode(QToolButton::DelayedPopup);
ui->mainToolBar->insertWidget(ui->actionForward, backButton);
connect(backButton, SIGNAL(clicked()), this, SLOT(on_backButton_clicked()));
connect(backButton, SIGNAL(clicked()), this, SLOT(backButton_clicked()));
// Sepparator between undo/redo and goto lineEdit
QWidget *spacer3 = new QWidget();
@ -193,7 +193,7 @@ void MainWindow::initUI()
if (syntax == checked) {
action->setChecked(true);
}
connect(action, SIGNAL(triggered(bool)), this, SLOT(on_actionAsm_syntax_triggered()));
connect(action, SIGNAL(triggered()), this, SLOT(actionAsm_syntax_triggered()));
asmSyntaxes.append(action);
ui->menuAsm_syntax->addAction(action);
}
@ -806,7 +806,7 @@ void MainWindow::refreshMem()
}
void MainWindow::on_backButton_clicked()
void MainWindow::backButton_clicked()
{
QList<RVA> seek_history = core->getSeekHistory();
this->core->cmd("s-");
@ -1111,7 +1111,7 @@ void MainWindow::on_actionDisplay_Offsets_triggered()
refreshVisibleDockWidgets();
}
void MainWindow::on_actionAsm_syntax_triggered()
void MainWindow::actionAsm_syntax_triggered()
{
QObject* sender = QObject::sender();
// Uncheck every other choices

View File

@ -120,7 +120,7 @@ public slots:
void toggleResponsive(bool maybe);
void on_backButton_clicked();
void backButton_clicked();
void refreshVisibleDockWidgets();
@ -180,7 +180,7 @@ private slots:
void on_actionDisplay_Offsets_triggered();
void on_actionAsm_syntax_triggered();
void actionAsm_syntax_triggered();
private:
QDockWidget *asmDock;

View File

@ -486,6 +486,12 @@ QToolButton .svg-icon path {
</property>
</action>
<action name="actionLock">
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>true</bool>
</property>
<property name="text">
<string>Toggle Panel Locks</string>
</property>
@ -647,6 +653,9 @@ QToolButton .svg-icon path {
</property>
</action>
<action name="actionTabs_on_Top">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Toggle Tab Position</string>
</property>

View File

@ -39,11 +39,11 @@ private slots:
void on_actionVertical_triggered();
void refreshTree();
private:
Ui::CommentsWidget *ui;
MainWindow *main;
void refreshTree();
};
#endif // COMMENTSWIDGET_H

View File

@ -1941,7 +1941,7 @@ void MemoryWidget::selectHexPreview()
void MemoryWidget::seek_back()
{
//this->main->add_debug_output("Back!");
this->main->on_backButton_clicked();
this->main->backButton_clicked();
}
void MemoryWidget::frameLoadFinished(bool ok)