mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00

Rewrite the calling method of dock settings, using the new dconfig interface instead of AM's dbus interface log: as title
36 lines
829 B
C++
36 lines
829 B
C++
// Copyright (C) 2011 ~ 2018 Deepin Technology Co., Ltd.
|
|
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#ifndef PLUGINWIDGET_H
|
|
#define PLUGINWIDGET_H
|
|
|
|
#include "constants.h"
|
|
|
|
#include <QWidget>
|
|
#include <QIcon>
|
|
|
|
class ShutdownWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ShutdownWidget(QWidget *parent = Q_NULLPTR);
|
|
QPixmap loadPixmap() const;
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *e) override;
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
|
void mouseMoveEvent(QMouseEvent *event) override;
|
|
void leaveEvent(QEvent *event) override;
|
|
|
|
private:
|
|
Dock::DisplayMode m_displayMode;
|
|
bool m_hover;
|
|
bool m_pressed;
|
|
};
|
|
|
|
#endif // PLUGINWIDGET_H
|