Skip to content

Commit

Permalink
chore: add ForceDock flag
Browse files Browse the repository at this point in the history
强制显示在任务栏

Issues: linuxdeepin/developer-center#9619
  • Loading branch information
zsien authored and max-lvs committed Aug 13, 2024
1 parent 4cf9aba commit af32a67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dde-dock-plugins/recordtime/recordtimeplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#define RECORDTIME_H

#include <QtDBus/QtDBus>
#include <dde-dock/pluginsiteminterface.h>
#include <dde-dock/pluginsiteminterface_v2.h>
#include "timewidget.h"
#include "dbusservice.h"

class RecordTimePlugin : public QObject, PluginsItemInterface
class RecordTimePlugin : public QObject, PluginsItemInterfaceV2
{
Q_OBJECT
Q_INTERFACES(PluginsItemInterface)
Expand All @@ -31,6 +31,7 @@ class RecordTimePlugin : public QObject, PluginsItemInterface
* @return
*/
const QString pluginDisplayName() const override;
Dock::PluginFlags flags() const override { return Dock::Type_Tool | Dock::Attribute_ForceDock | Dock::Attribute_Normal; }
PluginSizePolicy pluginSizePolicy() const override { return PluginsItemInterface::Custom; }

//cppcheck误报:此函数从未被使用,其实这个函数由dde-dock框架调用
Expand Down

0 comments on commit af32a67

Please sign in to comment.