mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
23 lines
357 B
C++
23 lines
357 B
C++
#ifndef TIPSWIDGET_H
|
|
#define TIPSWIDGET_H
|
|
|
|
#include <QFrame>
|
|
|
|
class TipsWidget : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TipsWidget(QWidget *parent = nullptr);
|
|
|
|
void setText(const QString &text);
|
|
void refreshFont();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
private:
|
|
QString m_text;
|
|
};
|
|
|
|
#endif // TIPSWIDGET_H
|