Mercurial > minori
view include/gui/widgets/elided_label.h @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 19:48:38 -0400 |
parents | b3549da699a6 |
children | 3ec7804abf17 |
line wrap: on
line source
#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