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

bug24279 【TR4】【桌面专业版】【SP1】【华为】【Kunpeng920】【uos-20-pangu-daliy-20200505-build48】【任务栏-蓝牙】任务栏蓝牙tooltips显示异常,功能无法使用 (cherry picked from commit 882ad1ee7704dfc824019a391a3d35efd49e0e23) # Conflicts: # translations/dde-dock.ts # widgets/tipswidget.cpp # widgets/tipswidget.h
27 lines
529 B
C++
27 lines
529 B
C++
#ifndef TIPSWIDGET_H
|
|
#define TIPSWIDGET_H
|
|
|
|
#include <QFrame>
|
|
|
|
class TipsWidget : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit TipsWidget(QWidget *parent = nullptr);
|
|
|
|
const QString& text(){return m_text;}
|
|
const QStringList &textList() { return m_textList; }
|
|
void setText(const QString &text);
|
|
void setTextList(const QStringList &textList);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
private:
|
|
QString m_text;
|
|
QStringList m_textList;
|
|
int m_width;
|
|
};
|
|
|
|
#endif // TIPSWIDGET_H
|