aboutsummaryrefslogtreecommitdiffstats
path: root/gui/line_editor.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2018-08-03 03:31:37 -0700
committerGitHub <noreply@github.com>2018-08-03 03:31:37 -0700
commit751a5457dcd8ce3acd9aa08591f56310c85210d4 (patch)
tree40f9789b2d1a96797e7b530e78b0de39ba2bd753 /gui/line_editor.cc
parent1c1fd99b8ba686c21b17dd8d413a0a5ae6ba1a6d (diff)
parent90623b80e8c37e71e095cc377ce9e8c032af679b (diff)
downloadnextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.tar.gz
nextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.tar.bz2
nextpnr-751a5457dcd8ce3acd9aa08591f56310c85210d4.zip
Merge pull request #20 from YosysHQ/gui4all
Refactor GUI
Diffstat (limited to 'gui/line_editor.cc')
-rw-r--r--gui/line_editor.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/line_editor.cc b/gui/line_editor.cc
index 23415092..b25f4031 100644
--- a/gui/line_editor.cc
+++ b/gui/line_editor.cc
@@ -32,13 +32,13 @@ LineEditor::LineEditor(ParseHelper *helper, QWidget *parent) : QLineEdit(parent)
setContextMenuPolicy(Qt::CustomContextMenu);
QAction *clearAction = new QAction("Clear &history", this);
clearAction->setStatusTip("Clears line edit history");
- connect(clearAction, SIGNAL(triggered()), this, SLOT(clearHistory()));
+ connect(clearAction, &QAction::triggered, this, &LineEditor::clearHistory);
contextMenu = createStandardContextMenu();
contextMenu->addSeparator();
contextMenu->addAction(clearAction);
- connect(this, SIGNAL(returnPressed()), SLOT(textInserted()));
- connect(this, SIGNAL(customContextMenuRequested(const QPoint)), this, SLOT(showContextMenu(const QPoint)));
+ connect(this, &LineEditor::returnPressed, this, &LineEditor::textInserted);
+ connect(this, &LineEditor::customContextMenuRequested, this, &LineEditor::showContextMenu);
}
void LineEditor::keyPressEvent(QKeyEvent *ev)