mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

修复Address Sanitizer检测的内存泄露处 Log: 修复内存泄露问题 Bug: https://pms.uniontech.com/zentao/bug-view-68395.html Change-Id: Ib43b3cd3c37ee1825c04e8fffc7d3e1836a177af
35 lines
903 B
C++
35 lines
903 B
C++
#ifndef TESTPLUGIN_H
|
|
#define TESTPLUGIN_H
|
|
|
|
#include "pluginsiteminterface.h"
|
|
|
|
#include <QPointer>
|
|
const QString Name = "Test";
|
|
|
|
class QWidget;
|
|
class TestPlugin : public PluginsItemInterface
|
|
{
|
|
public:
|
|
TestPlugin();
|
|
~ TestPlugin() override;
|
|
|
|
virtual const QString pluginName() const override;
|
|
virtual const QString pluginDisplayName() const override;
|
|
virtual void init(PluginProxyInterface *proxyInter) override;
|
|
virtual QWidget *itemWidget(const QString &itemKey) override;
|
|
virtual int itemSortKey(const QString &itemKey) override;
|
|
virtual void setSortKey(const QString &itemKey, const int order) override;
|
|
virtual PluginSizePolicy pluginSizePolicy() const override;
|
|
virtual PluginType type() override;
|
|
|
|
public:
|
|
void setType(const PluginType type);
|
|
|
|
private:
|
|
int m_sortKey;
|
|
PluginType m_type;
|
|
QPointer<QWidget> m_widget;
|
|
};
|
|
|
|
#endif // TESTPLUGIN_H
|