GUI: Add option to show debug warnings in checking log.
This commit is contained in:
parent
20a4f1e195
commit
b0fa7bfd8c
|
@ -48,6 +48,7 @@ ShowTypes;
|
||||||
#define SETTINGS_CHECK_THREADS "Check threads"
|
#define SETTINGS_CHECK_THREADS "Check threads"
|
||||||
#define SETTINGS_SHOW_FULL_PATH "Show full path"
|
#define SETTINGS_SHOW_FULL_PATH "Show full path"
|
||||||
#define SETTINGS_SHOW_NO_ERRORS "Show no errors message"
|
#define SETTINGS_SHOW_NO_ERRORS "Show no errors message"
|
||||||
|
#define SETTINGS_SHOW_DEBUG_WARNINGS "Show debug warnings"
|
||||||
#define SETTINGS_SAVE_ALL_ERRORS "Save all errors"
|
#define SETTINGS_SAVE_ALL_ERRORS "Save all errors"
|
||||||
#define SETTINGS_SAVE_FULL_PATH "Save full path"
|
#define SETTINGS_SAVE_FULL_PATH "Save full path"
|
||||||
#define SETTINGS_CHECK_DIALOG_WIDTH "Check dialog width"
|
#define SETTINGS_CHECK_DIALOG_WIDTH "Check dialog width"
|
||||||
|
|
|
@ -361,7 +361,7 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
}
|
}
|
||||||
|
|
||||||
result.debug = false;
|
result.debug = false;
|
||||||
result.debugwarnings = false;
|
result.debugwarnings = mSettings->value(SETTINGS_SHOW_DEBUG_WARNINGS, 0).toBool();
|
||||||
result._checkCodingStyle = true;
|
result._checkCodingStyle = true;
|
||||||
result._errorsOnly = false;
|
result._errorsOnly = false;
|
||||||
result._verbose = true;
|
result._verbose = true;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>589</width>
|
<width>589</width>
|
||||||
<height>274</height>
|
<height>281</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
@ -61,6 +61,13 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="mShowDebugWarnings">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show internal warnings in log</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -164,6 +171,22 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>tabWidget</tabstop>
|
||||||
|
<tabstop>mJobs</tabstop>
|
||||||
|
<tabstop>mForce</tabstop>
|
||||||
|
<tabstop>mShowFullPath</tabstop>
|
||||||
|
<tabstop>mShowNoErrorsMessage</tabstop>
|
||||||
|
<tabstop>mShowDebugWarnings</tabstop>
|
||||||
|
<tabstop>mListWidget</tabstop>
|
||||||
|
<tabstop>mButtonAdd</tabstop>
|
||||||
|
<tabstop>mButtonDelete</tabstop>
|
||||||
|
<tabstop>mButtonModify</tabstop>
|
||||||
|
<tabstop>mButtonDefault</tabstop>
|
||||||
|
<tabstop>mSaveAllErrors</tabstop>
|
||||||
|
<tabstop>mSaveFullPath</tabstop>
|
||||||
|
<tabstop>mButtons</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
|
|
|
@ -46,7 +46,7 @@ SettingsDialog::SettingsDialog(QSettings *programSettings,
|
||||||
mUI.mForce->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_CHECK_FORCE, false).toBool()));
|
mUI.mForce->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_CHECK_FORCE, false).toBool()));
|
||||||
mUI.mShowFullPath->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_FULL_PATH, false).toBool()));
|
mUI.mShowFullPath->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_FULL_PATH, false).toBool()));
|
||||||
mUI.mShowNoErrorsMessage->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_NO_ERRORS, false).toBool()));
|
mUI.mShowNoErrorsMessage->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_NO_ERRORS, false).toBool()));
|
||||||
|
mUI.mShowDebugWarnings->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_DEBUG_WARNINGS, false).toBool()));
|
||||||
|
|
||||||
connect(mUI.mButtonAdd, SIGNAL(clicked()),
|
connect(mUI.mButtonAdd, SIGNAL(clicked()),
|
||||||
this, SLOT(AddApplication()));
|
this, SLOT(AddApplication()));
|
||||||
|
@ -122,6 +122,7 @@ void SettingsDialog::SaveCheckboxValues()
|
||||||
SaveCheckboxValue(mUI.mSaveFullPath, SETTINGS_SAVE_FULL_PATH);
|
SaveCheckboxValue(mUI.mSaveFullPath, SETTINGS_SAVE_FULL_PATH);
|
||||||
SaveCheckboxValue(mUI.mShowFullPath, SETTINGS_SHOW_FULL_PATH);
|
SaveCheckboxValue(mUI.mShowFullPath, SETTINGS_SHOW_FULL_PATH);
|
||||||
SaveCheckboxValue(mUI.mShowNoErrorsMessage, SETTINGS_SHOW_NO_ERRORS);
|
SaveCheckboxValue(mUI.mShowNoErrorsMessage, SETTINGS_SHOW_NO_ERRORS);
|
||||||
|
SaveCheckboxValue(mUI.mShowDebugWarnings, SETTINGS_SHOW_DEBUG_WARNINGS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsDialog::SaveCheckboxValue(QCheckBox *box, const QString &name)
|
void SettingsDialog::SaveCheckboxValue(QCheckBox *box, const QString &name)
|
||||||
|
|
Loading…
Reference in New Issue