##// END OF EJS Templates
Some more cleaning....
Some more cleaning. Removed useless function Converted some QDebug calls to SocExplorerEngine::message calls Added static void message(QObject* sender,const QString& message,int debugLevel=0); and static void message(const QString& sender,const QString& message,int debugLevel=0);

File last commit:

r91:acc9efbbe625 default
r100:11a895cff789 pre-0.7
Show More
socexplorercoresettingsgui.cpp
37 lines | 1.3 KiB | text/x-c | CppLexer
/ src / socexplorercoresettingsgui.cpp
#include "socexplorercoresettingsgui.h"
#include "ui_socexplorercoresettingsgui.h"
#include <socexplorersettings.h>
#include <socexplorerengine.h>
#include <socexplorerconfigkeys.h>
SocExplorerCoreSettingsGUI::SocExplorerCoreSettingsGUI(QWidget *parent) :
SocExplorerSettingsItem(parent),
ui(new Ui::SocExplorerCoreSettingsGUI)
{
ui->setupUi(this);
this->ui->PluginsLookupPath->setText(SocExplorerSettings::value(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_PLUGINS_LOOKUP_PATH,"").toString());
this->ui->SOCregsLookupPath->setText(SocExplorerSettings::value(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_SOC_REGS_LOOKUP_PATH,"").toString());
}
SocExplorerCoreSettingsGUI::~SocExplorerCoreSettingsGUI()
{
delete ui;
}
void SocExplorerCoreSettingsGUI::changeEvent(QEvent *e)
{
QWidget::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}
void SocExplorerCoreSettingsGUI::accept()
{
SocExplorerSettings::setValue(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_PLUGINS_LOOKUP_PATH,this->ui->PluginsLookupPath->text());
SocExplorerSettings::setValue(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_SOC_REGS_LOOKUP_PATH,this->ui->SOCregsLookupPath->text());
}