mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Formatting, doxygen, typo aircrafts (to aircraft),
removed some debug output, {} in if statements
This commit is contained in:
@@ -61,12 +61,7 @@ namespace BlackGui
|
||||
bool visible = (this->isVisibleWidget() && this->currentWidget() == this->ui->tb_AircraftsInRange);
|
||||
if (this->countAircrafts() < 1 || visible)
|
||||
{
|
||||
this->ui->tvp_AircraftsInRange->updateContainer(this->getIContextNetwork()->getAircraftsInRange());
|
||||
}
|
||||
else
|
||||
{
|
||||
// KWB remove: qDebug() will be removed soon
|
||||
qDebug() << this->objectName() << "Skipping update (aircrafts)";
|
||||
this->ui->tvp_AircraftsInRange->updateContainer(this->getIContextNetwork()->getAircraftInRange());
|
||||
}
|
||||
}
|
||||
if (this->getIContextSimulator()->isConnected())
|
||||
@@ -76,10 +71,6 @@ namespace BlackGui
|
||||
{
|
||||
this->ui->tvp_AirportsInRange->updateContainer(this->getIContextSimulator()->getAirportsInRange());
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << this->objectName() << "Skipping update (airports)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace BlackGui
|
||||
{
|
||||
CAtcStationComponent::CAtcStationComponent(QWidget *parent) :
|
||||
QTabWidget(parent),
|
||||
ui(new Ui::CAtcStationComponent), m_updateTimer(nullptr)
|
||||
ui(new Ui::CAtcStationComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->tabBar()->setExpanding(false);
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CAtcStationComponent> ui;
|
||||
CUpdateTimer *m_updateTimer;
|
||||
CUpdateTimer *m_updateTimer = nullptr;
|
||||
QDateTime m_timestampLastReadOnlineStations = CUpdateTimer::epoch(); //!< stations read
|
||||
QDateTime m_timestampOnlineStationsChanged = CUpdateTimer::epoch(); //!< stations marked as changed
|
||||
QDateTime m_timestampLastReadBookedStations = CUpdateTimer::epoch(); //!< stations read
|
||||
|
||||
@@ -105,7 +105,7 @@ namespace BlackGui
|
||||
|
||||
// Opacity, intervals
|
||||
this->connect(this->ui->hs_SettingsGuiOpacity, &QSlider::valueChanged, this, &CSettingsComponent::changedWindowsOpacity);
|
||||
this->connect(this->ui->hs_SettingsGuiAircraftRefreshTime, &QSlider::valueChanged, this, &CSettingsComponent::changedAircraftsUpdateInterval);
|
||||
this->connect(this->ui->hs_SettingsGuiAircraftRefreshTime, &QSlider::valueChanged, this, &CSettingsComponent::changedAircraftUpdateInterval);
|
||||
this->connect(this->ui->hs_SettingsGuiAtcRefreshTime, &QSlider::valueChanged, this, &CSettingsComponent::changedAtcStationsUpdateInterval);
|
||||
this->connect(this->ui->hs_SettingsGuiUserRefreshTime, &QSlider::valueChanged, this, &CSettingsComponent::changedUsersUpdateInterval);
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace BlackGui
|
||||
void changedAtcStationsUpdateInterval(int seconds);
|
||||
|
||||
//! Update interval changed (aircrafts)
|
||||
void changedAircraftsUpdateInterval(int seconds);
|
||||
void changedAircraftUpdateInterval(int seconds);
|
||||
|
||||
//! Update interval changed (users)
|
||||
void changedUsersUpdateInterval(int seconds);
|
||||
|
||||
@@ -103,6 +103,9 @@
|
||||
<property name="documentTitle">
|
||||
<string>UNICOM</string>
|
||||
</property>
|
||||
<property name="lineWrapMode">
|
||||
<enum>QTextEdit::NoWrap</enum>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
||||
@@ -22,9 +22,7 @@ namespace BlackGui
|
||||
namespace Models
|
||||
{
|
||||
|
||||
/*!
|
||||
* Aircraft list model
|
||||
*/
|
||||
//! Aircraft list model
|
||||
class CAircraftListModel : public CListModelBase<BlackMisc::Aviation::CAircraft, BlackMisc::Aviation::CAircraftList>
|
||||
{
|
||||
|
||||
|
||||
@@ -22,5 +22,5 @@ namespace BlackGui
|
||||
{
|
||||
this->standardInit(new CClientListModel(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user