feat(showdesktop):enum build bug

This commit is contained in:
shaojun 2019-09-03 20:53:49 +08:00
parent c76389b385
commit a2b6cb4bff
3 changed files with 4 additions and 5 deletions

View File

@ -68,8 +68,7 @@ PluginsItem::PluginsItem(PluginsItemInterface *const pluginInter, const QString
m_gsettings->setParent(this);
connect(m_gsettings, &QGSettings::changed, this,
&PluginsItem::onGSettingsChanged);
}
else {
} else {
m_gsettings = nullptr;
}
}
@ -123,7 +122,7 @@ QString PluginsItem::pluginName() const
DockItem::ItemType PluginsItem::itemType() const
{
if (m_pluginInter->type() == PluginsItemInterface::normal) {
if (m_pluginInter->type() == PluginsItemInterface::Normal) {
return Plugins;
} else {
return Launcher;

View File

@ -54,7 +54,7 @@ public:
virtual const QString pluginName() const = 0;
virtual const QString pluginDisplayName() const { return QString(); }
virtual PluginType type() { return normal; }
virtual PluginType type() { return Normal; }
///
/// \brief init
/// init your plugins, you need to save proxyInter to m_proxyInter

View File

@ -158,7 +158,7 @@ void ShowDesktopPlugin::pluginSettingsChanged()
PluginsItemInterface::PluginType ShowDesktopPlugin::type()
{
return PluginType::fixed;
return PluginType::Fixed;
}
void ShowDesktopPlugin::updateBatteryVisible()