Updated connect()s to new syntax
This commit is contained in:
parent
66c18d95a7
commit
4fc514e2eb
@ -18,10 +18,12 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
connect(ui->actionNew, SIGNAL(triggered()), this, SLOT(newFile()));
|
connect(ui->actionNew, &QAction::triggered, this, &MainWindow::newFile);
|
||||||
connect(ui->actionOpen, SIGNAL(triggered()), this, SLOT(openFile()));
|
connect(ui->actionOpen, &QAction::triggered, this, &MainWindow::openFile);
|
||||||
connect(ui->actionSave, SIGNAL(triggered()), this, SLOT(saveFile()));
|
connect(ui->actionSave, &QAction::triggered, this,
|
||||||
connect(ui->actionSave_as, SIGNAL(triggered()), this, SLOT(saveFileAs()));
|
qOverload<>(&MainWindow::saveFile));
|
||||||
|
connect(
|
||||||
|
ui->actionSave_as, &QAction::triggered, this, &MainWindow::saveFileAs);
|
||||||
|
|
||||||
newFile();
|
newFile();
|
||||||
}
|
}
|
||||||
@ -46,7 +48,8 @@ void MainWindow::newFile()
|
|||||||
|
|
||||||
ui->resultWidget->setModel(&m_dataModel->m_results);
|
ui->resultWidget->setModel(&m_dataModel->m_results);
|
||||||
|
|
||||||
connect(&*m_dataModel, &DataModel::modelChanged, this, &MainWindow::dataModelChanged);
|
connect(&*m_dataModel, &DataModel::modelChanged, this,
|
||||||
|
&MainWindow::dataModelChanged);
|
||||||
|
|
||||||
setWindowModified(false);
|
setWindowModified(false);
|
||||||
setWindowTitle("untitled[*]");
|
setWindowTitle("untitled[*]");
|
||||||
|
Reference in New Issue
Block a user