mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 09:54:16 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
77a898c9ec
commit
6a2b0a89d1
@@ -31,7 +31,7 @@ namespace BlackGui
|
|||||||
explicit CAboutDialog(QWidget *parent = nullptr);
|
explicit CAboutDialog(QWidget *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CAboutDialog();
|
virtual ~CAboutDialog() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//! Init values
|
//! Init values
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ namespace BlackGui
|
|||||||
|
|
||||||
// 1st init when running in distributed environment
|
// 1st init when running in distributed environment
|
||||||
QPointer<CAircraftModelValidationComponent> myself(this);
|
QPointer<CAircraftModelValidationComponent> myself(this);
|
||||||
|
|
||||||
const qint64 lastResults = m_lastResults;
|
const qint64 lastResults = m_lastResults;
|
||||||
QTimer::singleShot(2500, this, [ = ]
|
QTimer::singleShot(2500, this, [ = ]
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace BlackGui
|
|||||||
explicit CAircraftModelValidationComponent(QWidget *parent = nullptr);
|
explicit CAircraftModelValidationComponent(QWidget *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CAircraftModelValidationComponent();
|
virtual ~CAircraftModelValidationComponent() override;
|
||||||
|
|
||||||
//! Validated a model set
|
//! Validated a model set
|
||||||
void validatedModelSet(const BlackMisc::Simulation::CSimulatorInfo &simulator, const BlackMisc::Simulation::CAircraftModelList &valid, const BlackMisc::Simulation::CAircraftModelList &invalid, bool stopped, const BlackMisc::CStatusMessageList &msgs);
|
void validatedModelSet(const BlackMisc::Simulation::CSimulatorInfo &simulator, const BlackMisc::Simulation::CAircraftModelList &valid, const BlackMisc::Simulation::CAircraftModelList &invalid, bool stopped, const BlackMisc::CStatusMessageList &msgs);
|
||||||
|
|||||||
@@ -17,8 +17,6 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QScopedPointer>
|
#include <QScopedPointer>
|
||||||
|
|
||||||
class QWidget;
|
|
||||||
|
|
||||||
namespace Ui { class CAudioComponent; }
|
namespace Ui { class CAudioComponent; }
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
@@ -34,7 +32,7 @@ namespace BlackGui
|
|||||||
explicit CAudioComponent(QWidget *parent = nullptr);
|
explicit CAudioComponent(QWidget *parent = nullptr);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CAudioComponent();
|
virtual ~CAudioComponent() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::CAudioComponent> ui;
|
QScopedPointer<Ui::CAudioComponent> ui;
|
||||||
|
|||||||
@@ -59,16 +59,6 @@ namespace BlackGui
|
|||||||
|
|
||||||
// init if data already available
|
// init if data already available
|
||||||
this->onWebDataRead();
|
this->onWebDataRead();
|
||||||
|
|
||||||
/**
|
|
||||||
//! \todo remove this block when no longer needed after 2019-02
|
|
||||||
//! \fixme hardcoded stylesheet setting per stylesheet does NOT work, this hardcoded stuff should be removed
|
|
||||||
const QString style("background-image: url(:/textures/icons/textures/texture-inner.jpg)");
|
|
||||||
ui->wp2_Aircraft->setStyleSheet(style);
|
|
||||||
ui->wp3_LiveryColor->setStyleSheet(style);
|
|
||||||
ui->wp4_Livery->setStyleSheet(style);
|
|
||||||
ui->wp5_Distributor->setStyleSheet(style);
|
|
||||||
**/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CDbQuickMappingWizard::~CDbQuickMappingWizard()
|
CDbQuickMappingWizard::~CDbQuickMappingWizard()
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include <Qt>
|
#include <Qt>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
|
#include <QStringBuilder>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
using namespace BlackConfig;
|
using namespace BlackConfig;
|
||||||
@@ -154,7 +155,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
// at least connected
|
// at least connected
|
||||||
const QString s(
|
const QString s(
|
||||||
sGui->getIContextSimulator()->getSimulatorPluginInfo().getDescription() + ": " +
|
sGui->getIContextSimulator()->getSimulatorPluginInfo().getDescription() % u": " %
|
||||||
ISimulator::statusToString(simStatus)
|
ISimulator::statusToString(simStatus)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -197,7 +198,7 @@ namespace BlackGui
|
|||||||
break;
|
break;
|
||||||
case INetwork::Connected:
|
case INetwork::Connected:
|
||||||
ui->led_Network->setOn(true);
|
ui->led_Network->setOn(true);
|
||||||
ui->led_Network->setOnToolTip("Connected: " + sGui->getIContextNetwork()->getConnectedServer().getName());
|
ui->led_Network->setOnToolTip(u"Connected: " % sGui->getIContextNetwork()->getConnectedServer().getName());
|
||||||
break;
|
break;
|
||||||
case INetwork::Connecting:
|
case INetwork::Connecting:
|
||||||
ui->led_Network->setTriStateColor(CLedWidget::Yellow);
|
ui->led_Network->setTriStateColor(CLedWidget::Yellow);
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ namespace BlackGui
|
|||||||
//! Enables/disabled the given plugin.
|
//! Enables/disabled the given plugin.
|
||||||
void setEnabled(const QString &identifier, bool enabled);
|
void setEnabled(const QString &identifier, bool enabled);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handlePluginStateChange();
|
void handlePluginStateChange();
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QScopedPointer>
|
#include <QScopedPointer>
|
||||||
|
|
||||||
class QWidget;
|
|
||||||
|
|
||||||
namespace Ui { class CShowHideBar; }
|
namespace Ui { class CShowHideBar; }
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user