dde-dock/frame/item/components/fullquickitem.h
donghualin 16a8cf7d3e fix: 修复移除插件后快捷面板显示异常的问题
1、在插件移除后,除了从面板上将该插件的Widget移除外,删除该插件创建出来的QWidget
2、在插件对应的QWidget尺寸发生变化后,重新设置面板尺寸
3、在释放任务栏图标后,恢复ToolTip的parent

Log: 修复移除插件后快捷面板显示异常的问题
Influence: 不断插入或者移除蓝牙设备,观察快捷面板是否显示正常
Bug: https://pms.uniontech.com/bug-view-171579.html
Change-Id: I8168b49ad9eb047155efbd609be65f3dd263b6bc
2022-11-18 09:22:57 +00:00

49 lines
1.3 KiB
C++

/*
* Copyright (C) 2022 ~ 2022 Deepin Technology Co., Ltd.
*
* Author: donghualin <donghualin@uniontech.com>
*
* Maintainer: donghualin <donghualin@uniontech.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FULLQUICKITEM_H
#define FULLQUICKITEM_H
#include "quicksettingitem.h"
class FullQuickItem : public QuickSettingItem
{
Q_OBJECT
public:
FullQuickItem(PluginsItemInterface *const pluginInter, QWidget *parent = nullptr);
~FullQuickItem() override;
QuickSettingType type() const override;
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
private:
void initUi();
void resizeSelf();
private:
QWidget *m_centerWidget;
DBlurEffectWidget *m_effectWidget;
};
#endif // FULLQUICKITEM_H