diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2018-08-03 03:31:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-03 03:31:37 -0700 |
commit | 751a5457dcd8ce3acd9aa08591f56310c85210d4 (patch) | |
tree | 40f9789b2d1a96797e7b530e78b0de39ba2bd753 /gui/pythontab.cc | |
parent | 1c1fd99b8ba686c21b17dd8d413a0a5ae6ba1a6d (diff) | |
parent | 90623b80e8c37e71e095cc377ce9e8c032af679b (diff) | |
download | nextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.tar.gz nextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.tar.bz2 nextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.zip |
Merge pull request #20 from YosysHQ/gui4all
Refactor GUI
Diffstat (limited to 'gui/pythontab.cc')
-rw-r--r-- | gui/pythontab.cc | 6 |
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);
|