mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Fixed typo, style
This commit is contained in:
@@ -200,7 +200,7 @@ QAction *SwiftGuiStd::getToggleStayOnTopAction(QObject *parent)
|
||||
{
|
||||
const QIcon i(CIcons::changeIconBackgroundColor(this->style()->standardIcon(QStyle::SP_TitleBarUnshadeButton), Qt::white, QSize(16, 16)));
|
||||
QAction *a = new QAction(i, "Toogle main window on top", parent);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::toogleWindowStayOnTop);
|
||||
connect(a, &QAction::triggered, this, &SwiftGuiStd::toggleWindowStayOnTop);
|
||||
return a;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ void SwiftGuiStd::onChangedWindowOpacity(int opacity)
|
||||
ui->comp_MainInfoArea->getSettingsComponent()->setGuiOpacity(o * 100.0);
|
||||
}
|
||||
|
||||
void SwiftGuiStd::toogleWindowStayOnTop()
|
||||
void SwiftGuiStd::toggleWindowStayOnTop()
|
||||
{
|
||||
if (sGui) { sGui->toggleStayOnTop(); }
|
||||
}
|
||||
@@ -448,6 +448,7 @@ void SwiftGuiStd::verifyPrerequisites()
|
||||
|
||||
void SwiftGuiStd::onValidatedModelSet(const CSimulatorInfo &simulator, const CAircraftModelList &valid, const CAircraftModelList &invalid, bool stopped, const CStatusMessageList &msgs)
|
||||
{
|
||||
// will NOT be called if no errors and setting is "only on errors"
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
this->displayValidationDialog();
|
||||
m_validationDialog->validatedModelSet(simulator, valid, invalid, stopped, msgs);
|
||||
|
||||
@@ -246,7 +246,7 @@ private:
|
||||
|
||||
//! Toggle if windows stays on top
|
||||
//! \remark mostly used with navigator
|
||||
void toogleWindowStayOnTop();
|
||||
void toggleWindowStayOnTop();
|
||||
|
||||
//! Toggle window visibility
|
||||
//! \remark mostly used with navigator
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace BlackMisc { namespace Aviation { class CAltitude; } }
|
||||
|
||||
using namespace BlackCore;
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackGui;
|
||||
@@ -45,6 +43,7 @@ bool SwiftGuiStd::reloadOwnAircraft()
|
||||
|
||||
void SwiftGuiStd::setTestPosition(const QString &wgsLatitude, const QString &wgsLongitude, const CAltitude &altitude, const CAltitude &pressureAltitude)
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
CCoordinateGeodetic coordinate(
|
||||
CLatitude::fromWgs84(wgsLatitude),
|
||||
CLongitude::fromWgs84(wgsLongitude),
|
||||
|
||||
Reference in New Issue
Block a user