mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #438, adjusted plugin info
* removed == * auto info object * removed unused .h files
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "simulatorplugininfo.h"
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
@@ -54,10 +53,21 @@ namespace BlackMisc
|
||||
return m_identifier.isEmpty();
|
||||
}
|
||||
|
||||
bool CSimulatorPluginInfo::isAuto() const
|
||||
{
|
||||
return (*this) == autoPlugin();
|
||||
}
|
||||
|
||||
QString CSimulatorPluginInfo::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
return QString("%1 (%2)").arg(m_name, m_identifier);
|
||||
}
|
||||
|
||||
const CSimulatorPluginInfo &CSimulatorPluginInfo::autoPlugin()
|
||||
{
|
||||
static const CSimulatorPluginInfo p("auto", "auto", "auto", "automatic plugin selection", false);
|
||||
return p;
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user