mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 10:55:32 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
c7b90ae439
commit
19c9a51c38
@@ -154,8 +154,8 @@ namespace BlackGui
|
||||
CStatusMessageList CAircraftIcaoForm::validate(bool nested) const
|
||||
{
|
||||
Q_UNUSED(nested);
|
||||
CAircraftIcaoCode code(getValue());
|
||||
CStatusMessageList msgs(code.validate());
|
||||
const CAircraftIcaoCode code(this->getValue());
|
||||
const CStatusMessageList msgs(code.validate());
|
||||
ui->val_Indicator->setState(msgs);
|
||||
return msgs;
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
#ifndef BLACKGUI_EDITORS_AIRCRAFTICAOFORM_H
|
||||
#define BLACKGUI_EDITORS_AIRCRAFTICAOFORM_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackgui/editors/form.h"
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/aviation/aircrafticaocode.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/variant.h"
|
||||
@@ -20,8 +20,6 @@
|
||||
#include <QObject>
|
||||
#include <QScopedPointer>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CAircraftIcaoForm; }
|
||||
namespace BlackGui
|
||||
{
|
||||
|
||||
@@ -77,7 +77,6 @@ namespace BlackGui
|
||||
if (coordinate == m_coordinate) { return false; }
|
||||
m_coordinate = coordinate;
|
||||
|
||||
|
||||
const CLatitude lat = coordinate.latitude();
|
||||
const QString latWgs = lat.toWgs84();
|
||||
ui->le_Latitude->setText(latWgs);
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace BlackGui
|
||||
explicit CForm(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CForm();
|
||||
virtual ~CForm() override;
|
||||
|
||||
//! Set editable
|
||||
virtual void setReadOnly(bool readOnly) = 0;
|
||||
|
||||
Reference in New Issue
Block a user