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()) {
|
if (appParams.argumentCount()) {
|
||||||
QString fileName = appParams.argument(0);
|
QString fileName = appParams.argument(0);
|
||||||
if (QFile::exists(fileName))
|
if (QFile::exists(fileName))
|
||||||
on_actionOpenSession_triggered(fileName);
|
openSession(fileName);
|
||||||
else
|
else
|
||||||
QMessageBox::information(NULL, qApp->applicationName(),
|
QMessageBox::information(NULL, qApp->applicationName(),
|
||||||
QString("File not found: " + fileName));
|
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));
|
qDebug("Open Session Action (%s)", qPrintable(fileName));
|
||||||
|
|
||||||
@ -259,6 +259,11 @@ _exit:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionOpenSession_triggered()
|
||||||
|
{
|
||||||
|
openSession();
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionSaveSession_triggered()
|
void MainWindow::on_actionSaveSession_triggered()
|
||||||
{
|
{
|
||||||
qDebug("Save Session Action");
|
qDebug("Save Session Action");
|
||||||
|
@ -36,6 +36,7 @@ class MainWindow : public QMainWindow, private Ui::MainWindow
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void openSession(QString fileName = QString());
|
||||||
bool openSession(QString fileName, QString &error);
|
bool openSession(QString fileName, QString &error);
|
||||||
bool saveSession(QString fileName, QString fileType, QString &error);
|
bool saveSession(QString fileName, QString fileType, QString &error);
|
||||||
|
|
||||||
@ -55,7 +56,7 @@ public:
|
|||||||
~MainWindow();
|
~MainWindow();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void on_actionOpenSession_triggered(QString fileName = QString());
|
void on_actionOpenSession_triggered();
|
||||||
void on_actionSaveSession_triggered();
|
void on_actionSaveSession_triggered();
|
||||||
void on_actionPreferences_triggered();
|
void on_actionPreferences_triggered();
|
||||||
void on_actionViewRestoreDefaults_triggered();
|
void on_actionViewRestoreDefaults_triggered();
|
||||||
|
Loading…
Reference in New Issue
Block a user