Ref T171, set object name for driver

This commit is contained in:
Klaus Basan
2017-10-15 19:52:57 +02:00
parent 807ceb16ac
commit 584fe51161
2 changed files with 6 additions and 3 deletions

View File

@@ -37,11 +37,11 @@ namespace BlackMisc
namespace Simulation namespace Simulation
{ {
template <typename Derived> template <typename Derived>
CInterpolator<Derived>::CInterpolator(const QString &objectName, const BlackMisc::Aviation::CCallsign &callsign, QObject *parent) : CInterpolator<Derived>::CInterpolator(const QString &objectName, const CCallsign &callsign, QObject *parent) :
QObject(parent), QObject(parent),
m_callsign(callsign) m_callsign(callsign)
{ {
this->setObjectName(objectName); this->setObjectName(objectName + " for " + callsign.asString());
} }
template <typename Derived> template <typename Derived>

View File

@@ -31,7 +31,10 @@ namespace BlackMisc
{ {
public: public:
//! Constructor //! Constructor
CInterpolatorDummy(const BlackMisc::Aviation::CCallsign &, QObject *parent) : QObject(parent) {} CInterpolatorDummy(const BlackMisc::Aviation::CCallsign &callsign, QObject *parent) : QObject(parent)
{
this->setObjectName("CInterpolatorDummy for " + callsign.asString());
}
//! \copydoc CInterpolator::getInterpolatedSituation //! \copydoc CInterpolator::getInterpolatedSituation
BlackMisc::Aviation::CAircraftSituation getInterpolatedSituation( BlackMisc::Aviation::CAircraftSituation getInterpolatedSituation(