mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 02:43:04 -05:00
30 lines
525 B
C++
30 lines
525 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() override;
|
|
};
|
|
|
|
#endif // SCRAPER_SCROLL_LABEL_H
|