summaryrefslogtreecommitdiff
path: root/src/plugins/help/openpageswidget.cpp
diff options
context:
space:
mode:
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)
{