1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef ELIDEDLABEL_H
6#define ELIDEDLABEL_H
7
8#include <QLabel>
9
10class ElidedLabelPrivate;
11class ElidedLabel : public QLabel
12{
13 Q_OBJECT
14 ElidedLabelPrivate *const d;
15
16public:
17 explicit ElidedLabel(QWidget *parent = nullptr);
18 virtual ~ElidedLabel();
19 QString text();
20
21public slots:
22 void setText(const QString &);
23};
24
25#endif // ELIDEDLABEL_H
26