summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/outputwindow.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-02-02 09:10:54 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-02-03 07:54:02 +0000
commit5646480f27007789429c7e813423c7f142810cc3 (patch)
tree29452400aa66e2dc8b17f4ef643128aff25ba8ce /src/plugins/coreplugin/outputwindow.cpp
parent7a9cc3499e81185ec24ce383cefc0f6e43f00ce4 (diff)
downloadqt-creator-5646480f27007789429c7e813423c7f142810cc3.tar.gz
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/outputwindow.cpp')
-rw-r--r--src/plugins/coreplugin/outputwindow.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/coreplugin/outputwindow.cpp b/src/plugins/coreplugin/outputwindow.cpp
index 44137f25ad..fb2a1b8c14 100644
--- a/src/plugins/coreplugin/outputwindow.cpp
+++ b/src/plugins/coreplugin/outputwindow.cpp
@@ -110,17 +110,17 @@ OutputWindow::OutputWindow(Context context, QWidget *parent)
ActionManager::registerAction(pasteAction, Constants::PASTE, context);
ActionManager::registerAction(selectAllAction, Constants::SELECTALL, context);
- connect(undoAction, SIGNAL(triggered()), this, SLOT(undo()));
- connect(redoAction, SIGNAL(triggered()), this, SLOT(redo()));
- connect(cutAction, SIGNAL(triggered()), this, SLOT(cut()));
- connect(copyAction, SIGNAL(triggered()), this, SLOT(copy()));
- connect(pasteAction, SIGNAL(triggered()), this, SLOT(paste()));
- connect(selectAllAction, SIGNAL(triggered()), this, SLOT(selectAll()));
-
- connect(this, SIGNAL(undoAvailable(bool)), undoAction, SLOT(setEnabled(bool)));
- connect(this, SIGNAL(redoAvailable(bool)), redoAction, SLOT(setEnabled(bool)));
- connect(this, SIGNAL(copyAvailable(bool)), cutAction, SLOT(setEnabled(bool))); // OutputWindow never read-only
- connect(this, SIGNAL(copyAvailable(bool)), copyAction, SLOT(setEnabled(bool)));
+ connect(undoAction, &QAction::triggered, this, &QPlainTextEdit::undo);
+ connect(redoAction, &QAction::triggered, this, &QPlainTextEdit::redo);
+ connect(cutAction, &QAction::triggered, this, &QPlainTextEdit::cut);
+ connect(copyAction, &QAction::triggered, this, &QPlainTextEdit::copy);
+ connect(pasteAction, &QAction::triggered, this, &QPlainTextEdit::paste);
+ connect(selectAllAction, &QAction::triggered, this, &QPlainTextEdit::selectAll);
+
+ connect(this, &QPlainTextEdit::undoAvailable, undoAction, &QAction::setEnabled);
+ connect(this, &QPlainTextEdit::redoAvailable, redoAction, &QAction::setEnabled);
+ connect(this, &QPlainTextEdit::copyAvailable, cutAction, &QAction::setEnabled); // OutputWindow never read-only
+ connect(this, &QPlainTextEdit::copyAvailable, copyAction, &QAction::setEnabled);
undoAction->setEnabled(false);
redoAction->setEnabled(false);