mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
feat(showdesktop):enum build bug
This commit is contained in:
parent
c76389b385
commit
a2b6cb4bff
@ -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;
|
||||
|
@ -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
|
||||
|
@ -158,7 +158,7 @@ void ShowDesktopPlugin::pluginSettingsChanged()
|
||||
|
||||
PluginsItemInterface::PluginType ShowDesktopPlugin::type()
|
||||
{
|
||||
return PluginType::fixed;
|
||||
return PluginType::Fixed;
|
||||
}
|
||||
|
||||
void ShowDesktopPlugin::updateBatteryVisible()
|
||||
|
Loading…
x
Reference in New Issue
Block a user