diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-12-13 01:18:33 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-12-18 11:54:12 +0000 |
commit | 9d3b2f09986ef23afc9907c60acc9331697225ea (patch) | |
tree | f0baefe87dab138a59dd5b93bba45283e32069d4 /src/plugins/texteditor/findinfiles.cpp | |
parent | b6131e1b1dfc471e869d650ff97a6b119ec2325c (diff) |
TextEditor: Use Qt5-style connects
The heavy lifting was done by clazy.
Change-Id: I380120e3419d2a3c0e272f51cc3e0d5f6aaa5e9b
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/findinfiles.cpp')
-rw-r--r-- | src/plugins/texteditor/findinfiles.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp index fc33b2cb49..dff00b9cef 100644 --- a/src/plugins/texteditor/findinfiles.cpp +++ b/src/plugins/texteditor/findinfiles.cpp @@ -56,8 +56,8 @@ FindInFiles::FindInFiles() m_directory(0) { m_instance = this; - connect(EditorManager::instance(), SIGNAL(findOnFileSystemRequest(QString)), - this, SLOT(findOnFileSystem(QString))); + connect(EditorManager::instance(), &EditorManager::findOnFileSystemRequest, + this, &FindInFiles::findOnFileSystem); } FindInFiles::~FindInFiles() @@ -132,7 +132,7 @@ QWidget *FindInFiles::createConfigWidget() gridLayout->addWidget(m_directory, 0, 1); QPushButton *browseButton = new QPushButton(Utils::PathChooser::browseButtonLabel()); gridLayout->addWidget(browseButton, 0, 2); - connect(browseButton, SIGNAL(clicked()), this, SLOT(openFileBrowser())); + connect(browseButton, &QAbstractButton::clicked, this, &FindInFiles::openFileBrowser); QLabel * const filePatternLabel = new QLabel(tr("Fi&le pattern:")); filePatternLabel->setMinimumWidth(80); |