mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 07:35:41 +08:00
Misc: removed redundant default value (settings), formatting, hide kill button
This commit is contained in:
committed by
Mathew Sutcliffe
parent
78c618e589
commit
2d56167e65
@@ -29,8 +29,7 @@ namespace BlackGui
|
||||
namespace Components
|
||||
{
|
||||
//! Audio setup such as input / output devices
|
||||
class BLACKGUI_EXPORT CAudioSetupComponent :
|
||||
public QFrame
|
||||
class BLACKGUI_EXPORT CAudioSetupComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -73,7 +72,6 @@ namespace BlackGui
|
||||
|
||||
QScopedPointer<Ui::CAudioSetupComponent> ui;
|
||||
BlackMisc::CSetting<BlackCore::Audio::TSettings> m_audioSettings { this, &CAudioSetupComponent::ps_reloadSettings };
|
||||
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_FLIGHTPLANCOMPONENT_H
|
||||
#define BLACKGUI_FLIGHTPLANCOMPONENT_H
|
||||
#ifndef BLACKGUI_COMPONENTS_FLIGHTPLANCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_FLIGHTPLANCOMPONENT_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/aviation/flightplan.h"
|
||||
@@ -29,7 +29,6 @@ class QWidget;
|
||||
|
||||
namespace BlackMisc { namespace Simulation { class CSimulatedAircraft; } }
|
||||
namespace Ui { class CFlightPlanComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
|
||||
@@ -108,8 +108,8 @@ namespace BlackGui
|
||||
if (!model.hasFileName()) { return; }
|
||||
if (QFile::exists(model.getFileName()))
|
||||
{
|
||||
const QString url("file:///" + model.getFileName());
|
||||
QDesktopServices::openUrl(QUrl(url));
|
||||
const QUrl url = QUrl::fromLocalFile(model.getFileName());
|
||||
QDesktopServices::openUrl(url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace BlackGui
|
||||
if (!mv->hasSingleSelectedRow()) { return; }
|
||||
const CAircraftModel model(mv->selectedObject());
|
||||
if (model.getIconPath().isEmpty()) { return; }
|
||||
CStatusMessage msg;
|
||||
CStatusMessage msg(this);
|
||||
const CPixmap pm(model.loadIcon(msg));
|
||||
if (msg.isSuccess())
|
||||
{
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace BlackGui
|
||||
ui(new Ui::COverlayMessages)
|
||||
{
|
||||
this->init(w, h);
|
||||
this->showKillButton(false);
|
||||
connect(sGui, &CGuiApplication::styleSheetsChanged, this, &COverlayMessages::ps_onStyleSheetsChanged);
|
||||
connect(ui->pb_Ok, &QPushButton::clicked, this, &COverlayMessages::ps_okClicked);
|
||||
connect(ui->pb_Cancel, &QPushButton::clicked, this, &COverlayMessages::ps_cancelClicked);
|
||||
@@ -325,6 +326,7 @@ namespace BlackGui
|
||||
{
|
||||
ui->sw_StatusMessagesComponent->setCurrentWidget(ui->pg_Image);
|
||||
this->setHeader("Image");
|
||||
this->showKillButton(false);
|
||||
}
|
||||
|
||||
void COverlayMessages::setConfirmationMessage(const QString &message)
|
||||
|
||||
Reference in New Issue
Block a user