rssguard/src/librssguard/gui/squeezelabel.h
2020-05-04 10:07:07 +02:00

21 lines
376 B
C++

// For license of this file, see <project-root-folder>/LICENSE.md.
#ifndef SQUEEZELABEL_H
#define SQUEEZELABEL_H
#include <QLabel>
class SqueezeLabel : public QLabel {
Q_OBJECT
public:
explicit SqueezeLabel(QWidget* parent = nullptr);
protected:
void paintEvent(QPaintEvent* event);
private:
QString m_squeezedTextCache;
};
#endif // SQUEEZELABEL_H