mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
refs #308 QMetaObject always requires the full namespace for string based lookup
This commit is contained in:
@@ -23,7 +23,6 @@ namespace BlackSimPlugin
|
||||
void registerMetadata()
|
||||
{
|
||||
qRegisterMetaType<CFs9Host::HostStatus>();
|
||||
qRegisterMetaType<CFs9Host::HostStatus>("CFs9Host::HostStatus");
|
||||
qRegisterMetaType<CFs9Client::ClientStatus>();
|
||||
}
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace BlackSimPlugin
|
||||
void clientTimedOut(const QString &callsign);
|
||||
|
||||
//! Client status changed
|
||||
void statusChanged(CFs9Client::ClientStatus);
|
||||
void statusChanged(const QString &callsign, BlackSimPlugin::Fs9::CFs9Client::ClientStatus);
|
||||
|
||||
protected slots:
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace BlackSimPlugin
|
||||
signals:
|
||||
|
||||
//! Hosting status changed
|
||||
void statusChanged(CFs9Host::HostStatus);
|
||||
void statusChanged(BlackSimPlugin::Fs9::CFs9Host::HostStatus);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace BlackSimPlugin
|
||||
emit aircraftModelChanged(m_aircraftModel);
|
||||
}
|
||||
|
||||
void CSimulatorFs9::ps_changeHostStatus(CFs9Host::HostStatus status)
|
||||
void CSimulatorFs9::ps_changeHostStatus(BlackSimPlugin::Fs9::CFs9Host::HostStatus status)
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace BlackSimPlugin
|
||||
void ps_changeOwnAircraftModel(const QString &modelname);
|
||||
|
||||
//! Change DirectPlay host status
|
||||
void ps_changeHostStatus(CFs9Host::HostStatus status);
|
||||
void ps_changeHostStatus(BlackSimPlugin::Fs9::CFs9Host::HostStatus status);
|
||||
|
||||
void ps_changeClientStatus(const QString &callsign, BlackSimPlugin::Fs9::CFs9Client::ClientStatus status);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user