diff include/gui/widgets/elided_label.h @ 253:b3549da699a6

*: ooooh! stupid big commit! oops
author Paper <paper@paper.us.eu.org>
date Tue, 06 Feb 2024 16:56:32 -0500
parents
children 3ec7804abf17
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/gui/widgets/elided_label.h	Tue Feb 06 16:56:32 2024 -0500
@@ -0,0 +1,21 @@
+#ifndef __gui__widgets__elided_label_h
+#define __gui__widgets__elided_label_h
+
+#include <QFrame>
+#include <QString>
+
+class QPaintEvent;
+class QWidget;
+
+class ElidedLabel : public QFrame {
+public:
+	ElidedLabel(const QString& text, QWidget* parent = nullptr);
+	void SetText(const QString& text);
+
+protected:
+	QString content;
+
+	void paintEvent(QPaintEvent* event) override;
+};
+
+#endif // __gui__widgets__elided_label_h
\ No newline at end of file