comparison include/gui/widgets/elided_label.h @ 348:6b0768158dcd

text: redesign almost every widget i.e. Paragraph is now a QLabel, etc etc, some things will probably break, idc
author Paper <paper@paper.us.eu.org>
date Tue, 25 Jun 2024 11:19:54 -0400
parents 3ec7804abf17
children
comparison
equal deleted inserted replaced
347:a0aa8c8c4307 348:6b0768158dcd
5 #include <QString> 5 #include <QString>
6 6
7 class QPaintEvent; 7 class QPaintEvent;
8 class QWidget; 8 class QWidget;
9 9
10 class ElidedLabel : public QFrame {
11 public:
12 ElidedLabel(const QString& text, QWidget* parent = nullptr);
13 void SetText(const QString& text);
14
15 protected:
16 QString content;
17
18 void paintEvent(QPaintEvent* event) override;
19 };
20
21 #endif // MINORI_GUI_WIDGETS_ELIDED_LABEL_H_ 10 #endif // MINORI_GUI_WIDGETS_ELIDED_LABEL_H_