mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
30 lines
543 B
C++
30 lines
543 B
C++
#ifndef SCRAPER_SCROLL_LABEL_H
|
|
#define SCRAPER_SCROLL_LABEL_H
|
|
|
|
#include <QScrollArea>
|
|
|
|
#include "themable.h"
|
|
|
|
class QLabel;
|
|
|
|
class ScraperScrollLabel : public QScrollArea, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ScraperScrollLabel(QWidget *parent = nullptr);
|
|
|
|
public slots:
|
|
void setText(const QString &text);
|
|
void setAltText(const QString &text);
|
|
|
|
void openLink(const QString &link);
|
|
|
|
private:
|
|
QLabel *textLabel;
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
};
|
|
|
|
#endif // SCRAPER_SCROLL_LABEL_H
|