Mercurial > minori
comparison include/gui/widgets/text.h @ 95:8043152ef9d4
include: set classes as final where appropriate
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 14:39:43 -0400 |
parents | d02fdf1d6708 |
children | b3549da699a6 |
comparison
equal
deleted
inserted
replaced
94:2f373d48f889 | 95:8043152ef9d4 |
---|---|
41 Line(QWidget* parent = nullptr); | 41 Line(QWidget* parent = nullptr); |
42 Line(const QString& text, QWidget* parent = nullptr); | 42 Line(const QString& text, QWidget* parent = nullptr); |
43 void SetText(const QString& text); | 43 void SetText(const QString& text); |
44 }; | 44 }; |
45 | 45 |
46 class Title : public Line { | 46 class Title final : public Line { |
47 Q_OBJECT | 47 Q_OBJECT |
48 | 48 |
49 public: | 49 public: |
50 Title(const QString& title, QWidget* parent = nullptr); | 50 Title(const QString& title, QWidget* parent = nullptr); |
51 }; | 51 }; |
52 | 52 |
53 class Section : public QWidget { | 53 class Section final : public QWidget { |
54 Q_OBJECT | 54 Q_OBJECT |
55 | 55 |
56 public: | 56 public: |
57 Section(const QString& title, const QString& data, QWidget* parent = nullptr); | 57 Section(const QString& title, const QString& data, QWidget* parent = nullptr); |
58 Header* GetHeader(); | 58 Header* GetHeader(); |
61 private: | 61 private: |
62 Header* header; | 62 Header* header; |
63 Paragraph* paragraph; | 63 Paragraph* paragraph; |
64 }; | 64 }; |
65 | 65 |
66 class LabelledSection : public QWidget { | 66 class LabelledSection final : public QWidget { |
67 Q_OBJECT | 67 Q_OBJECT |
68 | 68 |
69 public: | 69 public: |
70 LabelledSection(const QString& title, const QString& label, const QString& data, QWidget* parent = nullptr); | 70 LabelledSection(const QString& title, const QString& label, const QString& data, QWidget* parent = nullptr); |
71 Header* GetHeader(); | 71 Header* GetHeader(); |
76 Header* header; | 76 Header* header; |
77 Paragraph* labels; | 77 Paragraph* labels; |
78 Paragraph* paragraph; | 78 Paragraph* paragraph; |
79 }; | 79 }; |
80 | 80 |
81 class SelectableSection : public QWidget { | 81 class SelectableSection final : public QWidget { |
82 Q_OBJECT | 82 Q_OBJECT |
83 | 83 |
84 public: | 84 public: |
85 SelectableSection(const QString& title, const QString& data, QWidget* parent = nullptr); | 85 SelectableSection(const QString& title, const QString& data, QWidget* parent = nullptr); |
86 Header* GetHeader(); | 86 Header* GetHeader(); |
89 private: | 89 private: |
90 Header* header; | 90 Header* header; |
91 Paragraph* paragraph; | 91 Paragraph* paragraph; |
92 }; | 92 }; |
93 | 93 |
94 class OneLineSection : public QWidget { | 94 class OneLineSection final : public QWidget { |
95 Q_OBJECT | 95 Q_OBJECT |
96 | 96 |
97 public: | 97 public: |
98 OneLineSection(const QString& title, const QString& data, QWidget* parent = nullptr); | 98 OneLineSection(const QString& title, const QString& data, QWidget* parent = nullptr); |
99 Header* GetHeader(); | 99 Header* GetHeader(); |