aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-08-03 10:53:38 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-08-03 10:53:38 +0200
commit8abf38f37ff57f2b176d584e096d79894e6e6b88 (patch)
treeb6edfc793576275d05240e3c81e900bf2fd3bbfe /gui/pythontab.cc
parent23a7d96f4cbe43f5dba752d7c7bbd88ec2fa6bfd (diff)
downloadnextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.tar.gz
nextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.tar.bz2
nextpnr-8abf38f37ff57f2b176d584e096d79894e6e6b88.zip
Moved to new signal slot syntax
Diffstat (limited to 'gui/pythontab.cc')
-rw-r--r--gui/pythontab.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/pythontab.cc b/gui/pythontab.cc
index e761128d..80d731e9 100644
--- a/gui/pythontab.cc
+++ b/gui/pythontab.cc
@@ -42,18 +42,18 @@ PythonTab::PythonTab(QWidget *parent) : QWidget(parent), initialized(false)
console->setContextMenuPolicy(Qt::CustomContextMenu);
QAction *clearAction = new QAction("Clear &buffer", this);
clearAction->setStatusTip("Clears display buffer");
- connect(clearAction, SIGNAL(triggered()), this, SLOT(clearBuffer()));
+ connect(clearAction, &QAction::triggered, this, &PythonTab::clearBuffer);
contextMenu = console->createStandardContextMenu();
contextMenu->addSeparator();
contextMenu->addAction(clearAction);
- connect(console, SIGNAL(customContextMenuRequested(const QPoint)), this, SLOT(showContextMenu(const QPoint)));
+ connect(console, &PythonConsole::customContextMenuRequested, this, &PythonTab::showContextMenu);
lineEdit = new LineEditor(&parseHelper);
lineEdit->setMinimumHeight(30);
lineEdit->setMaximumHeight(30);
lineEdit->setFont(f);
lineEdit->setPlaceholderText(PythonTab::PROMPT);
- connect(lineEdit, SIGNAL(textLineInserted(QString)), this, SLOT(editLineReturnPressed(QString)));
+ connect(lineEdit, &LineEditor::textLineInserted, this, &PythonTab::editLineReturnPressed);
QGridLayout *mainLayout = new QGridLayout();
mainLayout->addWidget(console, 0, 0);