Fix warning - no matching signal
For slot MainWindow::on_actionOpenSession_triggered(QString)
This commit is contained in:
parent
983a155ccf
commit
2cd64061d1
@ -162,7 +162,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
if (appParams.argumentCount()) {
|
||||
QString fileName = appParams.argument(0);
|
||||
if (QFile::exists(fileName))
|
||||
on_actionOpenSession_triggered(fileName);
|
||||
openSession(fileName);
|
||||
else
|
||||
QMessageBox::information(NULL, qApp->applicationName(),
|
||||
QString("File not found: " + fileName));
|
||||
@ -207,7 +207,7 @@ MainWindow::~MainWindow()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenSession_triggered(QString fileName)
|
||||
void MainWindow::openSession(QString fileName)
|
||||
{
|
||||
qDebug("Open Session Action (%s)", qPrintable(fileName));
|
||||
|
||||
@ -259,6 +259,11 @@ _exit:
|
||||
return;
|
||||
}
|
||||
|
||||
void MainWindow::on_actionOpenSession_triggered()
|
||||
{
|
||||
openSession();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSaveSession_triggered()
|
||||
{
|
||||
qDebug("Save Session Action");
|
||||
|
@ -36,6 +36,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
void openSession(QString fileName = QString());
|
||||
bool openSession(QString fileName, QString &error);
|
||||
bool saveSession(QString fileName, QString fileType, QString &error);
|
||||
|
||||
@ -55,7 +56,7 @@ public:
|
||||
~MainWindow();
|
||||
|
||||
public slots:
|
||||
void on_actionOpenSession_triggered(QString fileName = QString());
|
||||
void on_actionOpenSession_triggered();
|
||||
void on_actionSaveSession_triggered();
|
||||
void on_actionPreferences_triggered();
|
||||
void on_actionViewRestoreDefaults_triggered();
|
||||
|
Loading…
Reference in New Issue
Block a user