summaryrefslogtreecommitdiff
path: root/src/plugins/help/openpageswidget.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-06-28 23:07:19 +0300
committerOrgad Shaneh <orgads@gmail.com>2016-06-30 12:12:00 +0000
commitd01adc134df06e609b90b22cf67f25848ce5c5f3 (patch)
tree6dab222dff52f40476ed27bb48f190caf6d3f053 /src/plugins/help/openpageswidget.cpp
parent700239c681d7a28f00b5eb0ae7330be8eceb9ae2 (diff)
downloadqt-creator-d01adc134df06e609b90b22cf67f25848ce5c5f3.tar.gz
Help: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: Ied9c7fcc031e530c41b342de950e2f0ac730bbb1 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/help/openpageswidget.cpp')
-rw-r--r--src/plugins/help/openpageswidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/help/openpageswidget.cpp b/src/plugins/help/openpageswidget.cpp
index 0457737ec8..a6ee23bda0 100644
--- a/src/plugins/help/openpageswidget.cpp
+++ b/src/plugins/help/openpageswidget.cpp
@@ -53,10 +53,10 @@ OpenPagesWidget::OpenPagesWidget(OpenPagesModel *sourceModel, QWidget *parent)
this, &OpenPagesWidget::handleCloseActivated);
connect(this, &OpenDocumentsTreeView::customContextMenuRequested,
this, &OpenPagesWidget::contextMenuRequested);
- connect(model(), SIGNAL(rowsInserted(QModelIndex,int,int)),
- this, SLOT(updateCloseButtonVisibility()));
- connect(model(), SIGNAL(rowsRemoved(QModelIndex,int,int)),
- this, SLOT(updateCloseButtonVisibility()));
+ connect(model(), &QAbstractItemModel::rowsInserted,
+ this, &OpenPagesWidget::updateCloseButtonVisibility);
+ connect(model(), &QAbstractItemModel::rowsRemoved,
+ this, &OpenPagesWidget::updateCloseButtonVisibility);
}
OpenPagesWidget::~OpenPagesWidget()
@@ -77,7 +77,7 @@ void OpenPagesWidget::allowContextMenu(bool ok)
m_allowContextMenu = ok;
}
-// -- private slots
+// -- private
void OpenPagesWidget::contextMenuRequested(QPoint pos)
{