mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-833 gcs options dialog polishing:
- createOptionsPage() now returns NULL to avoid having empty page in Options dialog - removed Gadget from gadget name - added some TODOs for for further cleanups
This commit is contained in:
parent
6b3e0c7ee3
commit
3ab33cf163
@ -35,7 +35,7 @@
|
||||
#include <coreplugin/modemanager.h>
|
||||
|
||||
ConfigGadgetFactory::ConfigGadgetFactory(QObject *parent) :
|
||||
IUAVGadgetFactory(QString("ConfigGadget"), tr("Config Gadget"), parent),
|
||||
IUAVGadgetFactory(QString("ConfigGadget"), tr("Config"), parent),
|
||||
gadgetWidget(0)
|
||||
{
|
||||
}
|
||||
@ -69,14 +69,16 @@ Core::IUAVGadget* ConfigGadgetFactory::createGadget(QWidget *parent)
|
||||
return new ConfigGadget(QString("ConfigGadget"), gadgetWidget, parent);
|
||||
}
|
||||
|
||||
// TODO should be removed as ConfigGadgetConfiguration is an empty class
|
||||
IUAVGadgetConfiguration *ConfigGadgetFactory::createConfiguration(QSettings* qSettings)
|
||||
{
|
||||
return new ConfigGadgetConfiguration(QString("ConfigGadget"), qSettings);
|
||||
}
|
||||
|
||||
// TODO should be removed as ConfigGadgetConfiguration is an empty class
|
||||
IOptionsPage *ConfigGadgetFactory::createOptionsPage(IUAVGadgetConfiguration *config)
|
||||
{
|
||||
return new ConfigGadgetOptionsPage(qobject_cast<ConfigGadgetConfiguration*>(config));
|
||||
return 0; //new ConfigGadgetOptionsPage(qobject_cast<ConfigGadgetConfiguration*>(config));
|
||||
}
|
||||
|
||||
void ConfigGadgetFactory::startInputWizard()
|
||||
|
Loading…
x
Reference in New Issue
Block a user