Ref T239, removed "QTimer m_xxx { this };" pattern

* not in worker classes as parent might have a relevance there
* in UI classes it is useless
This commit is contained in:
Klaus Basan
2018-01-31 00:05:58 +01:00
parent b12002caa2
commit 5aad426ced
18 changed files with 21 additions and 21 deletions

View File

@@ -86,7 +86,7 @@ namespace BlackGui
private:
QScopedPointer<Ui::CAircraftComponent> ui;
BlackMisc::CSettingReadOnly<BlackGui::Settings::TViewUpdateSettings> m_settings { this, &CAircraftComponent::ps_settingsChanged }; //!< settings changed
QTimer m_updateTimer { this };
QTimer m_updateTimer;
};
} // ns
} // ns

View File

@@ -39,7 +39,7 @@ namespace BlackGui
private:
QScopedPointer<Ui::CAircraftPartsHistory> ui;
QTimer m_timerUpdateHistory { this };
QTimer m_timerUpdateHistory;
QTextDocument m_text { this };
uint m_htmlHash = 0;

View File

@@ -131,7 +131,7 @@ namespace BlackGui
void settingsChanged();
QScopedPointer<Ui::CAtcStationComponent> ui;
QTimer m_updateTimer { this };
QTimer m_updateTimer;
QDateTime m_timestampLastReadOnlineStations; //!< stations read
QDateTime m_timestampOnlineStationsChanged; //!< stations marked as changed
QDateTime m_timestampLastReadBookedStations; //!< stations read

View File

@@ -82,7 +82,7 @@ namespace BlackGui
virtual void showConsolidationStatus(bool show);
private:
QTimer m_timer { this }; //!< check timer
QTimer m_timer; //!< check timer
BlackGui::CLedWidget *m_ledSwiftDb = nullptr;
BlackGui::CLedWidget *m_ledDataReady = nullptr;
BlackGui::CLedWidget *m_ledConsolidation = nullptr;

View File

@@ -211,7 +211,7 @@ namespace BlackGui
const QIcon m_iconPlay {":/famfamfam/icons/famfamfam/icons/silk/control_play_blue.png"};
const QIcon m_iconPause {":/famfamfam/icons/famfamfam/icons/silk/control_pause_blue.png"};
const int LogoffIntervalSeconds = 20; //!< time before logoff
QTimer m_logoffCountdownTimer { this }; //!< timer for logoff countdown
QTimer m_logoffCountdownTimer; //!< timer for logoff countdown
BlackMisc::CSettingReadOnly<BlackCore::Vatsim::TTrafficServers> m_otherTrafficNetworkServers { this, &CLoginComponent::reloadSettings };
BlackMisc::CData<BlackMisc::Simulation::Data::TLastModel> m_lastAircraftModel { this }; //!< recently used aircraft model
BlackMisc::CData<BlackMisc::Network::Data::TLastServer> m_lastServer { this }; //!< recently used server (VATSIM, other)

View File

@@ -151,7 +151,7 @@ namespace BlackGui
static constexpr int OverlayMessageMs = 5000;
QScopedPointer<Ui::CMappingComponent> ui;
bool m_missedRenderedAircraftUpdate = true; //! Rendered aircraft need update
QTimer m_updateTimer { this };
QTimer m_updateTimer;
BlackMisc::CTokenBucket m_bucket { 3, BlackMisc::PhysicalQuantities::CTime(5.0, BlackMisc::PhysicalQuantities::CTimeUnit::s()), 1};
Views::CCheckBoxDelegate *m_currentMappingsViewDelegate = nullptr; //! checkbox in view
BlackMisc::CIdentifier m_identifier { "MappingComponent", this };

View File

@@ -90,7 +90,7 @@ namespace BlackGui
void addOrUpdateLiveDataByName(const QString &name, const QString &value, BlackMisc::CIcons::IconIndex iconIndex);
QScopedPointer<Ui::CSimulatorComponent> ui;
QTimer m_updateTimer { this };
QTimer m_updateTimer;
};
} // ns
} // ns

View File

@@ -77,7 +77,7 @@ namespace BlackGui
private:
BlackMisc::Aviation::CTransponder::TransponderMode m_currentMode = BlackMisc::Aviation::CTransponder::StateStandby;
BlackMisc::Aviation::CTransponder::TransponderMode m_resetMode = BlackMisc::Aviation::CTransponder::StateStandby;
QTimer m_resetTimer { this };
QTimer m_resetTimer;
};
} // ns
} // ns

View File

@@ -66,7 +66,7 @@ namespace BlackGui
private:
QScopedPointer<Ui::CUserComponent> ui;
QTimer m_updateTimer { this };
QTimer m_updateTimer;
BlackMisc::CSettingReadOnly<BlackGui::Settings::TViewUpdateSettings> m_settings { this, &CUserComponent::ps_settingsChanged };
};
}

View File

@@ -77,7 +77,7 @@ namespace BlackGui
QScopedPointer<Ui::CWeatherComponent> ui;
QScopedPointer<CCoordinateDialog> m_coordinateDialog { new CCoordinateDialog(this) };
QVector<BlackMisc::Weather::CWeatherScenario> m_weatherScenarios;
QTimer m_weatherUpdateTimer { this };
QTimer m_weatherUpdateTimer;
BlackMisc::Geo::CCoordinateGeodetic m_lastOwnAircraftPosition;
BlackMisc::CSetting<BlackMisc::Simulation::Settings::TSelectedWeatherScenario> m_weatherScenarioSetting { this };
BlackCore::CActionBindings m_hotkeyBindings; //!< allow binding of hotkey