mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
GCS/coreplugin: Minor change to iuavgadget.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@389 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
2f3848e7ec
commit
4638a82b75
@ -51,6 +51,13 @@ void IUAVGadget::loadConfiguration(int index) {
|
|||||||
loadConfiguration(config);
|
loadConfiguration(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IUAVGadget::setActiveConfiguration(IUAVGadgetConfiguration *config)
|
||||||
|
{
|
||||||
|
m_activeConfiguration = config;
|
||||||
|
int index = m_toolbar->findText(config->name());
|
||||||
|
m_toolbar->setCurrentIndex(index);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void IUAVGadget::configurationChanged(IUAVGadgetConfiguration* config)
|
void IUAVGadget::configurationChanged(IUAVGadgetConfiguration* config)
|
||||||
{
|
{
|
||||||
|
@ -56,6 +56,7 @@ public:
|
|||||||
|
|
||||||
virtual void loadConfiguration(IUAVGadgetConfiguration* /*config*/) { }
|
virtual void loadConfiguration(IUAVGadgetConfiguration* /*config*/) { }
|
||||||
IUAVGadgetConfiguration *activeConfiguration() { return m_activeConfiguration; }
|
IUAVGadgetConfiguration *activeConfiguration() { return m_activeConfiguration; }
|
||||||
|
void setActiveConfiguration(IUAVGadgetConfiguration *config);
|
||||||
QComboBox *toolBar() { return m_toolbar; }
|
QComboBox *toolBar() { return m_toolbar; }
|
||||||
virtual QByteArray saveState();
|
virtual QByteArray saveState();
|
||||||
virtual void restoreState(QByteArray state);
|
virtual void restoreState(QByteArray state);
|
||||||
|
Loading…
Reference in New Issue
Block a user