mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
30 lines
469 B
C++
30 lines
469 B
C++
#ifndef PAGE_LABEL_WIDGET_H
|
|
#define PAGE_LABEL_WIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QLabel;
|
|
class QPropertyAnimation;
|
|
|
|
class PageLabelWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QLabel *textLabel;
|
|
QPropertyAnimation *animation;
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *) override;
|
|
|
|
public:
|
|
PageLabelWidget(QWidget *parent);
|
|
|
|
public slots:
|
|
void show();
|
|
void hide();
|
|
void setText(const QString &text);
|
|
void updatePosition();
|
|
};
|
|
|
|
#endif
|