summaryrefslogtreecommitdiff
path: root/src/plugins/help/docsettingspage.cpp
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@theqtcompany.com>2016-02-16 12:17:41 +0100
committerNiels Weber <niels.weber@theqtcompany.com>2016-02-16 11:26:30 +0000
commitd71e513c968f55403336f49a3fa4328b962966d0 (patch)
tree2aaa864813d18c4ab00667019d8236606cd34247 /src/plugins/help/docsettingspage.cpp
parent8ac1f8eb29457a26379328ab3d809b2a27cb83c9 (diff)
downloadqt-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.cpp2
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);
}