2009-03-01 08:38:21 +01:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2011-01-09 20:33:36 +01:00
|
|
|
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
|
2009-03-01 08:38:21 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-09-27 17:08:31 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-03-01 08:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2009-06-06 11:51:14 +02:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QWidget>
|
2009-03-22 13:32:07 +01:00
|
|
|
#include <QLabel>
|
2010-10-31 12:16:55 +01:00
|
|
|
#include <QList>
|
2009-03-22 13:32:07 +01:00
|
|
|
#include <QDebug>
|
2010-10-31 12:16:55 +01:00
|
|
|
#include <QListWidgetItem>
|
2009-05-23 12:37:30 +02:00
|
|
|
#include <QTabWidget>
|
2010-07-17 21:34:07 +02:00
|
|
|
#include <QSettings>
|
2010-11-26 21:35:45 +01:00
|
|
|
#include <QFileDialog>
|
2010-12-27 17:00:44 +01:00
|
|
|
#include <QThread>
|
2010-07-17 21:34:07 +02:00
|
|
|
#include "settingsdialog.h"
|
2009-05-23 12:37:30 +02:00
|
|
|
#include "applicationdialog.h"
|
2010-07-17 21:34:07 +02:00
|
|
|
#include "applicationlist.h"
|
2011-01-09 23:21:51 +01:00
|
|
|
#include "translationhandler.h"
|
2009-07-02 10:32:29 +02:00
|
|
|
#include "common.h"
|
2009-03-01 08:38:21 +01:00
|
|
|
|
2009-07-02 10:32:29 +02:00
|
|
|
SettingsDialog::SettingsDialog(QSettings *programSettings,
|
|
|
|
ApplicationList *list,
|
2011-01-09 23:21:51 +01:00
|
|
|
TranslationHandler *translator,
|
2009-06-06 11:51:14 +02:00
|
|
|
QWidget *parent) :
|
2010-04-15 20:08:51 +02:00
|
|
|
QDialog(parent),
|
|
|
|
mSettings(programSettings),
|
|
|
|
mApplications(list),
|
2011-01-13 22:38:08 +01:00
|
|
|
mTempApplications(new ApplicationList(this)),
|
|
|
|
mTranslator(translator)
|
2009-03-01 08:38:21 +01:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
mUI.setupUi(this);
|
2009-07-02 10:32:29 +02:00
|
|
|
mTempApplications->Copy(list);
|
2009-07-02 18:14:12 +02:00
|
|
|
|
|
|
|
mUI.mJobs->setText(programSettings->value(SETTINGS_CHECK_THREADS, 1).toString());
|
|
|
|
mUI.mForce->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_CHECK_FORCE, 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()));
|
2010-08-29 08:38:03 +02:00
|
|
|
mUI.mShowDebugWarnings->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SHOW_DEBUG_WARNINGS, false).toBool()));
|
2010-11-26 21:35:45 +01:00
|
|
|
mUI.mSaveAllErrors->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SAVE_ALL_ERRORS, false).toBool()));
|
|
|
|
mUI.mSaveFullPath->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_SAVE_FULL_PATH, false).toBool()));
|
2010-12-26 17:29:43 +01:00
|
|
|
mUI.mInlineSuppressions->setCheckState(BoolToCheckState(programSettings->value(SETTINGS_INLINE_SUPPRESSIONS, false).toBool()));
|
2009-07-02 18:14:12 +02:00
|
|
|
|
2010-11-26 21:35:45 +01:00
|
|
|
connect(mUI.mButtons, SIGNAL(accepted()), this, SLOT(Ok()));
|
|
|
|
connect(mUI.mButtons, SIGNAL(rejected()), this, SLOT(reject()));
|
2011-02-25 08:43:07 +01:00
|
|
|
connect(mUI.mBtnAddApplication, SIGNAL(clicked()),
|
2009-05-23 12:37:30 +02:00
|
|
|
this, SLOT(AddApplication()));
|
2011-02-25 08:43:07 +01:00
|
|
|
connect(mUI.mBtnRemoveApplication, SIGNAL(clicked()),
|
|
|
|
this, SLOT(RemoveApplication()));
|
|
|
|
connect(mUI.mBtnEditApplication, SIGNAL(clicked()),
|
|
|
|
this, SLOT(EditApplication()));
|
|
|
|
connect(mUI.mBtnDefaultApplication, SIGNAL(clicked()),
|
2009-05-23 17:45:05 +02:00
|
|
|
this, SLOT(DefaultApplication()));
|
2009-07-02 18:14:12 +02:00
|
|
|
connect(mUI.mListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
|
2011-02-25 08:43:07 +01:00
|
|
|
this, SLOT(EditApplication()));
|
2010-11-26 21:35:45 +01:00
|
|
|
connect(mUI.mBtnAddIncludePath, SIGNAL(clicked()),
|
|
|
|
this, SLOT(AddIncludePath()));
|
2011-02-24 21:06:30 +01:00
|
|
|
connect(mUI.mBtnRemoveIncludePath, SIGNAL(clicked()),
|
|
|
|
this, SLOT(RemoveIncludePath()));
|
|
|
|
connect(mUI.mBtnEditIncludePath, SIGNAL(clicked()),
|
|
|
|
this, SLOT(EditIncludePath()));
|
2009-05-23 12:37:30 +02:00
|
|
|
|
2009-07-02 18:14:12 +02:00
|
|
|
mUI.mListWidget->setSortingEnabled(false);
|
2011-02-25 08:24:29 +01:00
|
|
|
PopulateApplicationList();
|
2009-03-22 13:32:07 +01:00
|
|
|
|
2010-12-27 17:00:44 +01:00
|
|
|
const int count = QThread::idealThreadCount();
|
|
|
|
if (count != -1)
|
|
|
|
mUI.mLblIdealThreads->setText(QString::number(count));
|
|
|
|
else
|
|
|
|
mUI.mLblIdealThreads->setText(tr("N/A"));
|
|
|
|
|
2009-03-22 13:32:07 +01:00
|
|
|
LoadSettings();
|
2011-01-09 23:21:51 +01:00
|
|
|
InitTranslationsList();
|
2011-02-24 21:06:30 +01:00
|
|
|
InitIncludepathsList();
|
2009-03-01 08:38:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SettingsDialog::~SettingsDialog()
|
|
|
|
{
|
2009-03-22 13:32:07 +01:00
|
|
|
SaveSettings();
|
|
|
|
}
|
|
|
|
|
2011-02-24 21:06:30 +01:00
|
|
|
void SettingsDialog::AddIncludePath(const QString &path)
|
|
|
|
{
|
|
|
|
if (path.isNull() || path.isEmpty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
QListWidgetItem *item = new QListWidgetItem(path);
|
|
|
|
item->setFlags(item->flags() | Qt::ItemIsEditable);
|
|
|
|
mUI.mListIncludePaths->addItem(item);
|
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsDialog::InitIncludepathsList()
|
|
|
|
{
|
|
|
|
const QString allPaths = mSettings->value(SETTINGS_GLOBAL_INCLUDE_PATHS).toString();
|
|
|
|
const QStringList paths = allPaths.split(";", QString::SkipEmptyParts);
|
|
|
|
foreach(QString path, paths)
|
|
|
|
{
|
|
|
|
AddIncludePath(path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-09 23:21:51 +01:00
|
|
|
void SettingsDialog::InitTranslationsList()
|
|
|
|
{
|
2011-02-07 11:30:13 +01:00
|
|
|
const QString current = mTranslator->GetCurrentLanguage();
|
|
|
|
QList<TranslationInfo> translations = mTranslator->GetTranslations();
|
|
|
|
foreach(TranslationInfo translation, translations)
|
2011-01-09 23:21:51 +01:00
|
|
|
{
|
2011-02-07 11:30:13 +01:00
|
|
|
QListWidgetItem *item = new QListWidgetItem;
|
|
|
|
item->setText(translation.mName);
|
|
|
|
item->setData(LangCodeRole, QVariant(translation.mCode));
|
|
|
|
mUI.mListLanguages->addItem(item);
|
|
|
|
if (translation.mCode == current)
|
|
|
|
mUI.mListLanguages->setCurrentItem(item);
|
2011-01-09 23:21:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-08-10 07:26:59 +02:00
|
|
|
Qt::CheckState SettingsDialog::BoolToCheckState(bool yes) const
|
2009-03-22 13:32:07 +01:00
|
|
|
{
|
2010-04-02 07:30:58 +02:00
|
|
|
if (yes)
|
2009-03-22 13:32:07 +01:00
|
|
|
{
|
|
|
|
return Qt::Checked;
|
|
|
|
}
|
|
|
|
return Qt::Unchecked;
|
|
|
|
}
|
|
|
|
|
2010-08-10 07:26:59 +02:00
|
|
|
bool SettingsDialog::CheckStateToBool(Qt::CheckState state) const
|
2009-03-22 13:32:07 +01:00
|
|
|
{
|
2010-04-02 07:30:58 +02:00
|
|
|
if (state == Qt::Checked)
|
2009-03-22 13:32:07 +01:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void SettingsDialog::LoadSettings()
|
|
|
|
{
|
2009-07-02 10:32:29 +02:00
|
|
|
resize(mSettings->value(SETTINGS_CHECK_DIALOG_WIDTH, 800).toInt(),
|
|
|
|
mSettings->value(SETTINGS_CHECK_DIALOG_HEIGHT, 600).toInt());
|
2009-03-22 13:32:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsDialog::SaveSettings()
|
|
|
|
{
|
2009-07-02 10:32:29 +02:00
|
|
|
mSettings->setValue(SETTINGS_CHECK_DIALOG_WIDTH, size().width());
|
|
|
|
mSettings->setValue(SETTINGS_CHECK_DIALOG_HEIGHT, size().height());
|
2009-03-22 13:32:07 +01:00
|
|
|
}
|
|
|
|
|
2010-11-26 21:35:45 +01:00
|
|
|
void SettingsDialog::SaveSettingValues()
|
2009-03-22 13:32:07 +01:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
int jobs = mUI.mJobs->text().toInt();
|
2010-04-02 07:30:58 +02:00
|
|
|
if (jobs <= 0)
|
2009-05-24 10:55:54 +02:00
|
|
|
{
|
2009-05-24 10:53:29 +02:00
|
|
|
jobs = 1;
|
|
|
|
}
|
|
|
|
|
2009-07-02 10:32:29 +02:00
|
|
|
mSettings->setValue(SETTINGS_CHECK_THREADS, jobs);
|
2009-07-02 18:14:12 +02:00
|
|
|
SaveCheckboxValue(mUI.mForce, SETTINGS_CHECK_FORCE);
|
|
|
|
SaveCheckboxValue(mUI.mSaveAllErrors, SETTINGS_SAVE_ALL_ERRORS);
|
|
|
|
SaveCheckboxValue(mUI.mSaveFullPath, SETTINGS_SAVE_FULL_PATH);
|
|
|
|
SaveCheckboxValue(mUI.mShowFullPath, SETTINGS_SHOW_FULL_PATH);
|
|
|
|
SaveCheckboxValue(mUI.mShowNoErrorsMessage, SETTINGS_SHOW_NO_ERRORS);
|
2010-08-29 08:38:03 +02:00
|
|
|
SaveCheckboxValue(mUI.mShowDebugWarnings, SETTINGS_SHOW_DEBUG_WARNINGS);
|
2010-12-26 17:29:43 +01:00
|
|
|
SaveCheckboxValue(mUI.mInlineSuppressions, SETTINGS_INLINE_SUPPRESSIONS);
|
2011-02-07 11:30:13 +01:00
|
|
|
|
|
|
|
QListWidgetItem *currentLang = mUI.mListLanguages->currentItem();
|
|
|
|
const QString langcode = currentLang->data(LangCodeRole).toString();
|
|
|
|
mSettings->setValue(SETTINGS_LANGUAGE, langcode);
|
2011-02-24 21:06:30 +01:00
|
|
|
|
|
|
|
const int count = mUI.mListIncludePaths->count();
|
|
|
|
QString includePaths;
|
|
|
|
for (int i = 0; i < count; i++)
|
|
|
|
{
|
|
|
|
QListWidgetItem *item = mUI.mListIncludePaths->item(i);
|
|
|
|
includePaths += item->text();
|
|
|
|
includePaths += ";";
|
|
|
|
}
|
|
|
|
mSettings->setValue(SETTINGS_GLOBAL_INCLUDE_PATHS, includePaths);
|
2009-03-22 13:32:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsDialog::SaveCheckboxValue(QCheckBox *box, const QString &name)
|
|
|
|
{
|
2009-07-02 10:32:29 +02:00
|
|
|
mSettings->setValue(name, CheckStateToBool(box->checkState()));
|
2009-03-01 08:38:21 +01:00
|
|
|
}
|
2009-05-23 12:37:30 +02:00
|
|
|
|
|
|
|
void SettingsDialog::AddApplication()
|
|
|
|
{
|
2011-04-02 15:30:09 +02:00
|
|
|
Application app;
|
|
|
|
ApplicationDialog dialog(tr("Add a new application"), app, this);
|
2009-05-23 12:37:30 +02:00
|
|
|
|
2010-04-02 07:30:58 +02:00
|
|
|
if (dialog.exec() == QDialog::Accepted)
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2011-04-02 15:30:09 +02:00
|
|
|
const Application app = dialog.GetApplication();
|
2011-04-02 15:11:01 +02:00
|
|
|
mTempApplications->AddApplication(app);
|
2011-04-02 15:30:09 +02:00
|
|
|
mUI.mListWidget->addItem(app.getName());
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-02-25 08:43:07 +01:00
|
|
|
void SettingsDialog::RemoveApplication()
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
QList<QListWidgetItem *> selected = mUI.mListWidget->selectedItems();
|
2011-02-25 11:04:10 +01:00
|
|
|
foreach(QListWidgetItem *item, selected)
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2011-02-25 11:04:10 +01:00
|
|
|
const int removeIndex = mUI.mListWidget->row(item);
|
|
|
|
const int currentDefault = mTempApplications->GetDefaultApplication();
|
|
|
|
mTempApplications->RemoveApplication(removeIndex);
|
|
|
|
if (removeIndex == currentDefault)
|
|
|
|
// If default app is removed set default to unknown
|
|
|
|
mTempApplications->SetDefault(-1);
|
|
|
|
else if (removeIndex < currentDefault)
|
|
|
|
// Move default app one up if earlier app was removed
|
|
|
|
mTempApplications->SetDefault(currentDefault - 1);
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
2011-02-25 11:04:10 +01:00
|
|
|
mUI.mListWidget->clear();
|
|
|
|
PopulateApplicationList();
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
|
|
|
|
2011-02-25 08:43:07 +01:00
|
|
|
void SettingsDialog::EditApplication()
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
QList<QListWidgetItem *> selected = mUI.mListWidget->selectedItems();
|
2009-05-23 12:37:30 +02:00
|
|
|
QListWidgetItem *item = 0;
|
2009-05-23 13:26:04 +02:00
|
|
|
foreach(item, selected)
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
int row = mUI.mListWidget->row(item);
|
2011-04-02 15:11:01 +02:00
|
|
|
const Application app = mTempApplications->GetApplication(row);
|
2011-04-02 15:30:09 +02:00
|
|
|
ApplicationDialog dialog(tr("Modify an application"), app, this);
|
2009-05-23 12:37:30 +02:00
|
|
|
|
2010-04-02 07:30:58 +02:00
|
|
|
if (dialog.exec() == QDialog::Accepted)
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2011-04-02 15:30:09 +02:00
|
|
|
const Application app2 = dialog.GetApplication();
|
2011-04-02 15:11:01 +02:00
|
|
|
mTempApplications->SetApplication(row, app2);
|
2011-04-02 15:30:09 +02:00
|
|
|
item->setText(app2.getName());
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-05-23 17:45:05 +02:00
|
|
|
void SettingsDialog::DefaultApplication()
|
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
QList<QListWidgetItem *> selected = mUI.mListWidget->selectedItems();
|
2010-04-02 07:30:58 +02:00
|
|
|
if (selected.size() > 0)
|
2009-05-23 17:45:05 +02:00
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
int index = mUI.mListWidget->row(selected[0]);
|
2011-02-25 10:45:04 +01:00
|
|
|
mTempApplications->SetDefault(index);
|
2009-07-02 18:14:12 +02:00
|
|
|
mUI.mListWidget->clear();
|
2011-02-25 08:24:29 +01:00
|
|
|
PopulateApplicationList();
|
2009-05-23 17:45:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-02-25 08:24:29 +01:00
|
|
|
void SettingsDialog::PopulateApplicationList()
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2011-02-25 10:45:04 +01:00
|
|
|
const int defapp = mTempApplications->GetDefaultApplication();
|
2010-04-02 07:30:58 +02:00
|
|
|
for (int i = 0; i < mTempApplications->GetApplicationCount(); i++)
|
2009-05-23 12:37:30 +02:00
|
|
|
{
|
2011-04-02 15:11:01 +02:00
|
|
|
Application app = mTempApplications->GetApplication(i);
|
|
|
|
QString name = app.getName();
|
2011-02-25 10:45:04 +01:00
|
|
|
if (i == defapp)
|
|
|
|
{
|
|
|
|
name += " ";
|
|
|
|
name += tr("[Default]");
|
|
|
|
}
|
|
|
|
mUI.mListWidget->addItem(name);
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
2009-06-08 15:58:26 +02:00
|
|
|
|
2011-02-25 12:15:53 +01:00
|
|
|
// Select default application, or if there is no default app then the
|
|
|
|
// first item.
|
|
|
|
if (defapp == -1)
|
2009-07-02 18:14:12 +02:00
|
|
|
mUI.mListWidget->setCurrentRow(0);
|
2011-02-25 12:15:53 +01:00
|
|
|
else
|
|
|
|
{
|
|
|
|
if (mTempApplications->GetApplicationCount() > defapp)
|
|
|
|
mUI.mListWidget->setCurrentRow(defapp);
|
|
|
|
else
|
|
|
|
mUI.mListWidget->setCurrentRow(0);
|
2009-06-08 15:58:26 +02:00
|
|
|
}
|
2009-05-23 12:37:30 +02:00
|
|
|
}
|
|
|
|
|
2009-05-24 11:08:51 +02:00
|
|
|
void SettingsDialog::Ok()
|
|
|
|
{
|
2009-07-02 10:32:29 +02:00
|
|
|
mApplications->Copy(mTempApplications);
|
2009-05-24 11:08:51 +02:00
|
|
|
accept();
|
|
|
|
}
|
|
|
|
|
2009-06-03 20:18:22 +02:00
|
|
|
bool SettingsDialog::ShowFullPath()
|
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
return CheckStateToBool(mUI.mShowFullPath->checkState());
|
2009-06-03 20:18:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SettingsDialog::SaveFullPath()
|
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
return CheckStateToBool(mUI.mSaveFullPath->checkState());
|
2009-06-03 20:18:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
bool SettingsDialog::SaveAllErrors()
|
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
return CheckStateToBool(mUI.mSaveAllErrors->checkState());
|
2009-06-03 20:18:22 +02:00
|
|
|
}
|
2009-06-09 09:51:27 +02:00
|
|
|
|
|
|
|
bool SettingsDialog::ShowNoErrorsMessage()
|
|
|
|
{
|
2009-07-02 18:14:12 +02:00
|
|
|
return CheckStateToBool(mUI.mShowNoErrorsMessage->checkState());
|
2009-06-09 09:51:27 +02:00
|
|
|
}
|
|
|
|
|
2010-11-26 21:35:45 +01:00
|
|
|
void SettingsDialog::AddIncludePath()
|
|
|
|
{
|
|
|
|
QString selectedDir = QFileDialog::getExistingDirectory(this,
|
|
|
|
tr("Select include directory"),
|
|
|
|
QString());
|
2009-06-09 09:51:27 +02:00
|
|
|
|
2010-11-26 21:35:45 +01:00
|
|
|
if (!selectedDir.isEmpty())
|
|
|
|
{
|
2011-02-24 21:06:30 +01:00
|
|
|
AddIncludePath(selectedDir);
|
2010-11-26 21:35:45 +01:00
|
|
|
}
|
|
|
|
}
|
2011-02-24 21:06:30 +01:00
|
|
|
|
|
|
|
void SettingsDialog::RemoveIncludePath()
|
|
|
|
{
|
|
|
|
const int row = mUI.mListIncludePaths->currentRow();
|
|
|
|
QListWidgetItem *item = mUI.mListIncludePaths->takeItem(row);
|
|
|
|
delete item;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SettingsDialog::EditIncludePath()
|
|
|
|
{
|
|
|
|
QListWidgetItem *item = mUI.mListIncludePaths->currentItem();
|
|
|
|
mUI.mListIncludePaths->editItem(item);
|
|
|
|
}
|