Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/settings/cmakepreferences.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | |||||
192 | { | 192 | { | ||
193 | // Sets up the cache view after model re-creation/reset. | 193 | // Sets up the cache view after model re-creation/reset. | ||
194 | // Emits changed(false) because model re-creation probably means | 194 | // Emits changed(false) because model re-creation probably means | ||
195 | // mass programmatical invocation of itemChanged(), which invokes changed(true) - which is not what we want. | 195 | // mass programmatical invocation of itemChanged(), which invokes changed(true) - which is not what we want. | ||
196 | m_prefsUi->cacheList->setModel(m_currentModel); | 196 | m_prefsUi->cacheList->setModel(m_currentModel); | ||
197 | m_prefsUi->cacheList->hideColumn(1); | 197 | m_prefsUi->cacheList->hideColumn(1); | ||
198 | m_prefsUi->cacheList->hideColumn(3); | 198 | m_prefsUi->cacheList->hideColumn(3); | ||
199 | m_prefsUi->cacheList->hideColumn(4); | 199 | m_prefsUi->cacheList->hideColumn(4); | ||
200 | m_prefsUi->cacheList->hideColumn(5); | ||||
200 | m_prefsUi->cacheList->horizontalHeader()->resizeSection(0, 200); | 201 | m_prefsUi->cacheList->horizontalHeader()->resizeSection(0, 200); | ||
201 | 202 | | |||
202 | if( m_currentModel ) { | 203 | if( m_currentModel ) { | ||
203 | m_prefsUi->cacheList->setEnabled( true ); | 204 | m_prefsUi->cacheList->setEnabled( true ); | ||
204 | foreach(const QModelIndex & idx, m_currentModel->persistentIndices()) { | 205 | foreach(const QModelIndex & idx, m_currentModel->persistentIndices()) { | ||
205 | m_prefsUi->cacheList->openPersistentEditor(idx); | 206 | m_prefsUi->cacheList->openPersistentEditor(idx); | ||
206 | } | 207 | } | ||
207 | } else { | 208 | } else { | ||
▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines |