| 454 | |
| 455 | |
| 456 | void 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 | |
| 471 | void ResultsTree::saveSettings() const |
| 472 | { |