dde-dock/widgets/tipswidget.h
zhaolong 1b6db122f3 fix(bluetooth):popup and tooltips display are abnormal
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
2020-05-14 13:14:46 +08:00

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