mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
24 lines
524 B
C++
24 lines
524 B
C++
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#include "customevent.h"
|
|
|
|
// 注册事件类型
|
|
static QEvent::Type pluginEventType = (QEvent::Type)QEvent::registerEventType(QEvent::User + 1001);
|
|
|
|
// 事件处理,当收到该事件的时候,加载插件
|
|
PluginLoadEvent::PluginLoadEvent()
|
|
: QEvent(pluginEventType)
|
|
{
|
|
}
|
|
|
|
PluginLoadEvent::~PluginLoadEvent()
|
|
{
|
|
}
|
|
|
|
QEvent::Type PluginLoadEvent::eventType()
|
|
{
|
|
return pluginEventType;
|
|
}
|