mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +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);
|
m_gsettings->setParent(this);
|
||||||
connect(m_gsettings, &QGSettings::changed, this,
|
connect(m_gsettings, &QGSettings::changed, this,
|
||||||
&PluginsItem::onGSettingsChanged);
|
&PluginsItem::onGSettingsChanged);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
m_gsettings = nullptr;
|
m_gsettings = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -123,7 +122,7 @@ QString PluginsItem::pluginName() const
|
|||||||
|
|
||||||
DockItem::ItemType PluginsItem::itemType() const
|
DockItem::ItemType PluginsItem::itemType() const
|
||||||
{
|
{
|
||||||
if (m_pluginInter->type() == PluginsItemInterface::normal) {
|
if (m_pluginInter->type() == PluginsItemInterface::Normal) {
|
||||||
return Plugins;
|
return Plugins;
|
||||||
} else {
|
} else {
|
||||||
return Launcher;
|
return Launcher;
|
||||||
|
@ -54,7 +54,7 @@ public:
|
|||||||
virtual const QString pluginName() const = 0;
|
virtual const QString pluginName() const = 0;
|
||||||
virtual const QString pluginDisplayName() const { return QString(); }
|
virtual const QString pluginDisplayName() const { return QString(); }
|
||||||
|
|
||||||
virtual PluginType type() { return normal; }
|
virtual PluginType type() { return Normal; }
|
||||||
///
|
///
|
||||||
/// \brief init
|
/// \brief init
|
||||||
/// init your plugins, you need to save proxyInter to m_proxyInter
|
/// init your plugins, you need to save proxyInter to m_proxyInter
|
||||||
|
@ -158,7 +158,7 @@ void ShowDesktopPlugin::pluginSettingsChanged()
|
|||||||
|
|
||||||
PluginsItemInterface::PluginType ShowDesktopPlugin::type()
|
PluginsItemInterface::PluginType ShowDesktopPlugin::type()
|
||||||
{
|
{
|
||||||
return PluginType::fixed;
|
return PluginType::Fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShowDesktopPlugin::updateBatteryVisible()
|
void ShowDesktopPlugin::updateBatteryVisible()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user