MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / loadSettings

Method loadSettings

gui/resultstree.cpp:456–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454
455
456void ResultsTree::loadSettings()
457{
458 for (int i = 0; i < mModel->columnCount(); i++) {
459 QString temp = QString(SETTINGS_RESULT_COLUMN_WIDTH).arg(i);
460 setColumnWidth(i, qMax(20, mSettings->value(temp, 800 / mModel->columnCount()).toInt()));
461 }
462
463 mSaveFullPath = mSettings->value(SETTINGS_SAVE_FULL_PATH, false).toBool();
464 mSaveAllErrors = mSettings->value(SETTINGS_SAVE_ALL_ERRORS, false).toBool();
465 mShowFullPath = mSettings->value(SETTINGS_SHOW_FULL_PATH, false).toBool();
466
467 showIdColumn(mSettings->value(SETTINGS_SHOW_ERROR_ID, true).toBool());
468 showInconclusiveColumn(mSettings->value(SETTINGS_INCONCLUSIVE_ERRORS, false).toBool());
469}
470
471void ResultsTree::saveSettings() const
472{

Callers

nothing calls this directly

Calls 2

QStringClass · 0.70
valueMethod · 0.45

Tested by

no test coverage detected