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 | |
10 | class ElidedLabelPrivate; |
11 | class ElidedLabel : public QLabel |
12 | { |
13 | Q_OBJECT |
14 | ElidedLabelPrivate *const d; |
15 | |
16 | public: |
17 | explicit ElidedLabel(QWidget *parent = nullptr); |
18 | virtual ~ElidedLabel(); |
19 | QString text(); |
20 | |
21 | public slots: |
22 | void setText(const QString &); |
23 | }; |
24 | |
25 | #endif // ELIDEDLABEL_H |
26 | |