diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-03 10:53:38 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-03 10:53:38 +0200 |
commit | 8abf38f37ff57f2b176d584e096d79894e6e6b88 (patch) | |
tree | b6edfc793576275d05240e3c81e900bf2fd3bbfe /gui/ice40 | |
parent | 23a7d96f4cbe43f5dba752d7c7bbd88ec2fa6bfd (diff) | |
download | nextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.tar.gz nextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.tar.bz2 nextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.zip |
Moved to new signal slot syntax
Diffstat (limited to 'gui/ice40')
-rw-r--r-- | gui/ice40/mainwindow.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc index ed017ee8..2fa2e561 100644 --- a/gui/ice40/mainwindow.cc +++ b/gui/ice40/mainwindow.cc @@ -44,7 +44,7 @@ MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget std::string title = "nextpnr-ice40 - [EMPTY]";
setWindowTitle(title.c_str());
- connect(this, SIGNAL(contextChanged(Context *)), this, SLOT(newContext(Context *)));
+ connect(this, &BaseMainWindow::contextChanged, this, &MainWindow::newContext);
createMenu();
@@ -60,13 +60,13 @@ void MainWindow::createMenu() actionLoadPCF->setIcon(QIcon(":/icons/resources/open_pcf.png"));
actionLoadPCF->setStatusTip("Open PCF file");
actionLoadPCF->setEnabled(false);
- connect(actionLoadPCF, SIGNAL(triggered()), this, SLOT(open_pcf()));
+ connect(actionLoadPCF, &QAction::triggered, this, &MainWindow::open_pcf);
actionSaveAsc = new QAction("Save ASC", this);
actionSaveAsc->setIcon(QIcon(":/icons/resources/save_asc.png"));
actionSaveAsc->setStatusTip("Save ASC file");
actionSaveAsc->setEnabled(false);
- connect(actionSaveAsc, SIGNAL(triggered()), this, SLOT(save_asc()));
+ connect(actionSaveAsc, &QAction::triggered, this, &MainWindow::save_asc);
// Add actions in menus
mainActionBar->addSeparator();
|