make this static, not needed for every plugin

This commit is contained in:
Michael Zanetti 2017-07-10 12:19:39 +02:00
parent ce3a21bd4e
commit 37f2e47ca5
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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;