forked from qt-creator/qt-creator
Use qAsConst with non-const Qt containers in range-loops
... in various places Change-Id: Ic6c0c1b9437a1ed402105c7a14a1f5f9454a68d4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -610,7 +610,7 @@ void SettingsDialog::ensureCategoryWidget(Category *category)
|
||||
m_model.ensurePages(category);
|
||||
auto tabWidget = new QTabWidget;
|
||||
tabWidget->tabBar()->setObjectName("qc_settings_main_tabbar"); // easier lookup in Squish
|
||||
for (IOptionsPage *page : category->pages) {
|
||||
for (IOptionsPage *page : qAsConst(category->pages)) {
|
||||
QWidget *widget = page->widget();
|
||||
ICore::setupScreenShooter(page->displayName(), widget);
|
||||
auto ssa = new SmartScrollArea(this);
|
||||
|
||||
Reference in New Issue
Block a user