aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/help/topicchooser.cpp
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2015-02-04 10:11:46 +0100
committerhjk <hjk@theqtcompany.com>2015-02-04 14:48:17 +0000
commit6a4d6efb3b69f3a5ffc314b4919fcffd52e30113 (patch)
treebbf89cf392b501d85f80cc8caaafc24604fca9cd /src/shared/help/topicchooser.cpp
parent380acb5baa375806af0a081b56d6d1dccd87264f (diff)
Port to new connect api
Change-Id: I84834f37dd15108ed8c5fbf5353bcabc4e564f70 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/shared/help/topicchooser.cpp')
-rw-r--r--src/shared/help/topicchooser.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/shared/help/topicchooser.cpp b/src/shared/help/topicchooser.cpp
index e22301d3179..c273b7f3318 100644
--- a/src/shared/help/topicchooser.cpp
+++ b/src/shared/help/topicchooser.cpp
@@ -69,12 +69,14 @@ TopicChooser::TopicChooser(QWidget *parent, const QString &keyword,
if (m_filterModel->rowCount() != 0)
ui.listWidget->setCurrentIndex(m_filterModel->index(0, 0));
- connect(ui.buttonDisplay, SIGNAL(clicked()), this, SLOT(acceptDialog()));
- connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
- connect(ui.listWidget, SIGNAL(activated(QModelIndex)), this,
- SLOT(activated(QModelIndex)));
- connect(ui.lineEdit, SIGNAL(filterChanged(QString)), this,
- SLOT(setFilter(QString)));
+ connect(ui.buttonDisplay, &QPushButton::clicked,
+ this, &TopicChooser::acceptDialog);
+ connect(ui.buttonCancel, &QPushButton::clicked,
+ this, &TopicChooser::reject);
+ connect(ui.listWidget, &QListView::activated,
+ this, &TopicChooser::activated);
+ connect(ui.lineEdit, &Utils::FancyLineEdit::filterChanged,
+ this, &TopicChooser::setFilter);
}
QUrl TopicChooser::link() const