mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #199, removed reEmitSignal for time being.
* Discussion: https://dev.vatsim-germany.org/issues/199#note-11 * Turned widgetGuiStarted / Terminated in more generic method
This commit is contained in:
@@ -49,26 +49,6 @@ namespace BlackCore
|
||||
return this->getRuntime()->getIContextSimulator();
|
||||
}
|
||||
|
||||
void CContext::reEmitSignalFromProxy(const QString &signalName)
|
||||
{
|
||||
if (signalName.isEmpty()) return;
|
||||
if (this->usingLocalObjects())
|
||||
{
|
||||
// resent in implementation
|
||||
QString sn = signalName;
|
||||
if (!sn.endsWith("()")) sn.append("()");
|
||||
const QMetaObject *metaObject = this->metaObject();
|
||||
int signalId = metaObject->indexOfSignal(sn.toUtf8().constData());
|
||||
Q_ASSERT(signalId >= 0);
|
||||
void *a[] = { 0 };
|
||||
QMetaObject::activate(this, signalId, a);
|
||||
}
|
||||
else
|
||||
{
|
||||
Q_ASSERT_X(false, "signalFromProxy", "Proxy needs to override method");
|
||||
}
|
||||
}
|
||||
|
||||
const IContextSimulator *CContext::getIContextSimulator() const
|
||||
{
|
||||
return this->getRuntime()->getIContextSimulator();
|
||||
|
||||
Reference in New Issue
Block a user