mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #559, adjustments cache/settings moved
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define BLACKSIMPLUGIN_SIMULATOR_FSX_CONFIG_H
|
||||
|
||||
#include "blackgui/pluginconfig.h"
|
||||
#include "blackcore/settingscache.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
|
||||
@@ -214,7 +214,7 @@ namespace BlackSimPlugin
|
||||
private:
|
||||
QDBusConnection m_conn { "default" };
|
||||
QDBusServiceWatcher *m_watcher { nullptr };
|
||||
BlackCore::CSetting<XBusServer> m_xbusServerSetting { this, &CSimulatorXPlaneListener::ps_xbusServerSettingChanged };
|
||||
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this, &CSimulatorXPlaneListener::ps_xbusServerSettingChanged };
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#define BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_H
|
||||
|
||||
#include "blackgui/pluginconfig.h"
|
||||
#include "blackcore/settingscache.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
@@ -23,12 +23,12 @@ namespace BlackSimPlugin
|
||||
/*!
|
||||
* Setting for XBus.
|
||||
*/
|
||||
struct XBusServer : public BlackCore::CSettingTrait<QString>
|
||||
struct XBusServer : public BlackMisc::CSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackMisc::CSetting::key
|
||||
static const char *key() { return "xbus/server"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::defaultValue
|
||||
//! \copydoc BlackMisc::CSetting::defaultValue
|
||||
static QString defaultValue() { return QStringLiteral("session"); }
|
||||
};
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace BlackSimPlugin
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSimulatorXPlaneConfigWindow> ui;
|
||||
BlackCore::CSetting<XBusServer> m_xbusServerSetting { this };
|
||||
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this };
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user