diff options
Diffstat (limited to 'gui/line_editor.cc')
-rw-r--r-- | gui/line_editor.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gui/line_editor.cc b/gui/line_editor.cc index d4be9d3a..9d9dac25 100644 --- a/gui/line_editor.cc +++ b/gui/line_editor.cc @@ -33,8 +33,7 @@ LineEditor::LineEditor(QWidget *parent) : QLineEdit(parent), index(0) contextMenu->addAction(clearAction); connect(this, SIGNAL(returnPressed()), SLOT(textInserted())); - connect(this, SIGNAL(customContextMenuRequested(const QPoint)), this, - SLOT(showContextMenu(const QPoint))); + connect(this, SIGNAL(customContextMenuRequested(const QPoint)), this, SLOT(showContextMenu(const QPoint))); } void LineEditor::keyPressEvent(QKeyEvent *ev) @@ -74,10 +73,7 @@ void LineEditor::textInserted() Q_EMIT textLineInserted(lines.back()); } -void LineEditor::showContextMenu(const QPoint &pt) -{ - contextMenu->exec(mapToGlobal(pt)); -} +void LineEditor::showContextMenu(const QPoint &pt) { contextMenu->exec(mapToGlobal(pt)); } void LineEditor::clearHistory() { |