Removed unnecessary options from settings dialog.

This commit is contained in:
Vesa Pikki 2009-03-22 20:00:06 +02:00
parent 24e22ac942
commit 8efae83184
2 changed files with 4 additions and 61 deletions

View File

@ -42,27 +42,12 @@ SettingsDialog::SettingsDialog(QSettings &programSettings) :
mJobs->setValidator(new QIntValidator(this));
layout->addLayout(jobsLayout);
//Show All
mShowAll = AddCheckbox(layout, tr("Show all"), tr("Check show all"), false);
//Check Coding Style
mCheckCodingStyle = AddCheckbox(layout, tr("Check Coding Style"), tr("Check coding style"), false);
//Errors only
mErrorsOnly = AddCheckbox(layout, tr("Errors only"), tr("Check errors only"), false);
//Verbose
mVerbose = AddCheckbox(layout, tr("Verbose"), tr("Check verbose"), false);
//Force
mForce = AddCheckbox(layout, tr("Force"), tr("Check force"), false);
mForce = AddCheckbox(layout,
tr("Force checking on files that have \"too many\" configurations"),
tr("Check force"),
false);
//Unused functions
mUnusedFunctions = AddCheckbox(layout, tr("Unused functions"), tr("Check unused functions"), false);
//Security
mSecurity = AddCheckbox(layout, tr("Security"), tr("Check security"), false);
@ -129,13 +114,7 @@ void SettingsDialog::SaveSettings()
void SettingsDialog::SaveCheckboxValues()
{
mSettings.setValue(tr("Check threads"), mJobs->text().toInt());
SaveCheckboxValue(mShowAll, tr("Check show all"));
SaveCheckboxValue(mCheckCodingStyle, tr("Check coding style"));
SaveCheckboxValue(mErrorsOnly, tr("Check errors only"));
SaveCheckboxValue(mVerbose, tr("Check verbose"));
SaveCheckboxValue(mForce, tr("Check force"));
SaveCheckboxValue(mUnusedFunctions, tr("Check unused functions"));
SaveCheckboxValue(mSecurity, tr("Check security"));
}
void SettingsDialog::SaveCheckboxValue(QCheckBox *box, const QString &name)

View File

@ -99,29 +99,6 @@ protected:
*/
QLineEdit *mJobs;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mShowAll;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mCheckCodingStyle;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mErrorsOnly;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mVerbose;
/**
* @brief Cppcheck setting
@ -129,19 +106,6 @@ protected:
*/
QCheckBox *mForce;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mUnusedFunctions;
/**
* @brief Cppcheck setting
*
*/
QCheckBox *mSecurity;
/**
* @brief Settings