make this static, not needed for every plugin
This commit is contained in:
parent
ce3a21bd4e
commit
37f2e47ca5
@ -1098,7 +1098,7 @@ QPair<bool, DeviceClass::DeviceIcon> DevicePlugin::loadAndVerifyDeviceIcon(const
|
||||
return QPair<bool, DeviceClass::DeviceIcon>(true, (DeviceClass::DeviceIcon)enumValue);
|
||||
}
|
||||
|
||||
QVariantMap DevicePlugin::loadInterface(const QString &name) const
|
||||
QVariantMap DevicePlugin::loadInterface(const QString &name)
|
||||
{
|
||||
QFile f(QString(":/interfaces/%1.json").arg(name));
|
||||
if (!f.open(QFile::ReadOnly)) {
|
||||
|
||||
@ -146,7 +146,7 @@ private:
|
||||
QPair<bool, DeviceClass::BasicTag> loadAndVerifyBasicTag(const QString &basicTag) const;
|
||||
QPair<bool, DeviceClass::DeviceIcon> loadAndVerifyDeviceIcon(const QString &deviceIcon) const;
|
||||
|
||||
QVariantMap loadInterface(const QString &name) const;
|
||||
static QVariantMap loadInterface(const QString &name);
|
||||
|
||||
QTranslator *m_translator;
|
||||
DeviceManager *m_deviceManager;
|
||||
|
||||
Reference in New Issue
Block a user