mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
GCS/core,map: Minor change to IOptionsPage.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@409 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
2c9ffd0195
commit
ab8ed38be8
@ -46,10 +46,13 @@ public:
|
||||
IOptionsPage(QObject *parent = 0) : QObject(parent) {}
|
||||
virtual ~IOptionsPage() {}
|
||||
|
||||
virtual QString id() const = 0;
|
||||
virtual QString trName() const = 0;
|
||||
virtual QString category() const = 0;
|
||||
virtual QString trCategory() const = 0;
|
||||
/* gadget options pages can leave these 4 functions as is,
|
||||
since they are decorated by UAVGadgetOptionsPageDecorator,
|
||||
all other options pages must override these */
|
||||
virtual QString id() const { return ""; };
|
||||
virtual QString trName() const { return ""; };
|
||||
virtual QString category() const { return "DefaultCategory"; };
|
||||
virtual QString trCategory() const { return "DefaultCategory"; };
|
||||
|
||||
virtual QWidget *createPage(QWidget *parent) = 0;
|
||||
virtual void apply() = 0;
|
||||
|
@ -44,10 +44,6 @@ class MapGadgetOptionsPage : public IOptionsPage
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MapGadgetOptionsPage(MapGadgetConfiguration *config, QObject *parent = 0);
|
||||
QString id() const { return ""; }
|
||||
QString trName() const { return ""; }
|
||||
QString category() const { return ""; }
|
||||
QString trCategory() const { return ""; }
|
||||
|
||||
QWidget *createPage(QWidget *parent);
|
||||
void apply();
|
||||
|
Loading…
Reference in New Issue
Block a user