Files
yacreader/YACReaderLibrary/comic_vine/scraper_results_paginator.h
luisangelsm edd5bbc69c Make Themable pass the current Theme through applyTheme
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
2026-02-19 18:06:31 +01:00

38 lines
746 B
C++

#ifndef SCRAPER_RESULTS_PAGINATOR_H
#define SCRAPER_RESULTS_PAGINATOR_H
#include "themable.h"
#include <QWidget>
class QToolButton;
class QLabel;
class ScraperResultsPaginator : public QWidget, protected Themable
{
Q_OBJECT
public:
explicit ScraperResultsPaginator(QWidget *parent = nullptr);
void update(const QString &json);
int getCurrentPage();
void setCustomLabel(const QString &label);
signals:
void loadNextPage();
void loadPreviousPage();
private:
QToolButton *nextPage;
QToolButton *previousPage;
QLabel *numElements;
QLabel *numPages;
int currentPage;
QString customLabel;
protected:
void applyTheme(const Theme &theme) override;
};
#endif // SCRAPER_RESULTS_PAGINATOR_H