mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Fix xplane plugin header includes
* Include only what is used * Use forward declaration when possible * Sorted includes refs #598
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "simulatorxplaneconfig.h"
|
||||
#include "simulatorxplaneconfigwindow.h"
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace XPlane
|
||||
|
||||
@@ -15,6 +15,13 @@
|
||||
#include "blackgui/pluginconfig.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace BlackGui { class CPluginConfigWindow; }
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace XPlane
|
||||
|
||||
@@ -8,16 +8,24 @@
|
||||
*/
|
||||
|
||||
#include "simulatorxplaneconfigwindow.h"
|
||||
#include "ui_simulatorxplaneconfigwindow.h"
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/simulation/xplane/xplaneutil.h"
|
||||
#include "blackmisc/fileutils.h"
|
||||
#include <QStringBuilder>
|
||||
#include "blackmisc/simulation/xplane/xplaneutil.h"
|
||||
#include "ui_simulatorxplaneconfigwindow.h"
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QCoreApplication>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QFlags>
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#include <QPushButton>
|
||||
#include <QString>
|
||||
#include <QStringBuilder>
|
||||
|
||||
class QWidget;
|
||||
|
||||
using namespace BlackGui;
|
||||
|
||||
namespace
|
||||
|
||||
@@ -12,13 +12,16 @@
|
||||
#ifndef BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
|
||||
#define BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_WINDOW_H
|
||||
|
||||
#include "simulatorxplaneconfig.h"
|
||||
#include "blackgui/pluginconfigwindow.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "simulatorxplaneconfig.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui {
|
||||
class CSimulatorXPlaneConfigWindow;
|
||||
}
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CSimulatorXPlaneConfigWindow; }
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
load(common_pre)
|
||||
|
||||
QT += core widgets dbus
|
||||
QT += core dbus widgets
|
||||
|
||||
TARGET = simulatorxplaneconfig
|
||||
TEMPLATE = lib
|
||||
|
||||
Reference in New Issue
Block a user