mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #366, passing Simulator plugin info to drivers
Add. some finetuning
This commit is contained in:
@@ -52,8 +52,14 @@ namespace BlackMisc
|
||||
QString CSimulatorPluginInfo::getSimulatorSetupValueAsString(int index) const
|
||||
{
|
||||
CVariant qv = getSimulatorSetupValue(index);
|
||||
Q_ASSERT(qv.canConvert<QString>());
|
||||
return qv.toQString();
|
||||
if (qv.canConvert<QString>())
|
||||
{
|
||||
return qv.toQString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void CSimulatorPluginInfo::setSimulatorSetup(const BlackMisc::CPropertyIndexVariantMap &setup)
|
||||
|
||||
Reference in New Issue
Block a user