diff options
author | Niels Weber <niels.weber@theqtcompany.com> | 2016-02-16 12:17:41 +0100 |
---|---|---|
committer | Niels Weber <niels.weber@theqtcompany.com> | 2016-02-16 11:26:30 +0000 |
commit | d71e513c968f55403336f49a3fa4328b962966d0 (patch) | |
tree | 2aaa864813d18c4ab00667019d8236606cd34247 /src/plugins/help/docsettingspage.cpp | |
parent | 8ac1f8eb29457a26379328ab3d809b2a27cb83c9 (diff) | |
download | qt-creator-d71e513c968f55403336f49a3fa4328b962966d0.tar.gz |
Fix compile with Qt < 5.6
Change-Id: I633d9f85efa709c41ec439f12b8963f612755008
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/help/docsettingspage.cpp')
-rw-r--r-- | src/plugins/help/docsettingspage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/help/docsettingspage.cpp b/src/plugins/help/docsettingspage.cpp index e2d0741bab..7e004f1dd5 100644 --- a/src/plugins/help/docsettingspage.cpp +++ b/src/plugins/help/docsettingspage.cpp @@ -299,7 +299,7 @@ void DocSettingsPage::removeDocumentation(const QList<QModelIndex> &items) m_model->removeAt(row); } - const int newlySelectedRow = qMax(items.constFirst().row() - 1, 0); + const int newlySelectedRow = qMax(items.first().row() - 1, 0); const QModelIndex index = m_proxyModel->mapFromSource(m_model->index(newlySelectedRow)); m_ui.docsListView->selectionModel()->select(index, QItemSelectionModel::ClearAndSelect); } |