Changeset View
Changeset View
Standalone View
Standalone View
src/filemetadatawidget.cpp
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Line(s) | 134 | { | |||
---|---|---|---|---|---|
171 | int rowIndex = 0; | 171 | int rowIndex = 0; | ||
172 | // Iterate through all remaining items. | 172 | // Iterate through all remaining items. | ||
173 | // Embed the label and the value as new row in the widget | 173 | // Embed the label and the value as new row in the widget | ||
174 | const QStringList keys = sortedKeys(data); | 174 | const QStringList keys = sortedKeys(data); | ||
175 | const int spacerWidth = QFontMetrics(q->font()).size(Qt::TextSingleLine, " ").width(); | 175 | const int spacerWidth = QFontMetrics(q->font()).size(Qt::TextSingleLine, " ").width(); | ||
176 | 176 | | |||
177 | const int labelColumn = m_configureVisibleProperties ? 1 : 0; | 177 | const int labelColumn = m_configureVisibleProperties ? 1 : 0; | ||
178 | 178 | | |||
179 | for (const auto key: keys) { | 179 | for (const auto& key : keys) { | ||
bruns: `for (const auto& key : keys) {` | |||||
180 | Row row; | 180 | Row row; | ||
181 | if (m_configureVisibleProperties) { | 181 | if (m_configureVisibleProperties) { | ||
182 | row.checkBox = new QCheckBox(q); | 182 | row.checkBox = new QCheckBox(q); | ||
183 | if (active.contains(key)) { | 183 | if (active.contains(key)) { | ||
184 | row.checkBox->setChecked(true); | 184 | row.checkBox->setChecked(true); | ||
185 | } | 185 | } | ||
186 | m_gridLayout->addWidget(row.checkBox, rowIndex, 0, Qt::AlignTop | Qt::AlignRight); | 186 | m_gridLayout->addWidget(row.checkBox, rowIndex, 0, Qt::AlignTop | Qt::AlignRight); | ||
187 | connect(row.checkBox, &QCheckBox::stateChanged, | 187 | connect(row.checkBox, &QCheckBox::stateChanged, | ||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |
for (const auto& key : keys) {