mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Initial implementation of theming
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define CLASSIC_COMICS_VIEW_H
|
||||
|
||||
#include "comics_view.h"
|
||||
#include "themable.h"
|
||||
|
||||
#include <QModelIndex>
|
||||
#include <QModelIndexList>
|
||||
@ -15,11 +16,14 @@ class ComicModel;
|
||||
class YACReaderTableView;
|
||||
class YACReaderToolBarStretch;
|
||||
|
||||
class ClassicComicsView : public ComicsView
|
||||
class ClassicComicsView : public ComicsView, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ClassicComicsView(QWidget *parent = nullptr);
|
||||
|
||||
protected:
|
||||
void applyTheme(const Theme &theme) override;
|
||||
void setToolBar(QToolBar *toolBar) override;
|
||||
void setModel(ComicModel *model) override;
|
||||
|
||||
@ -69,6 +73,7 @@ private:
|
||||
|
||||
QByteArray previousSplitterStatus;
|
||||
QWidget *searchingIcon;
|
||||
QLabel *searchingIconLabel;
|
||||
bool searching;
|
||||
void setupSearchingIcon();
|
||||
void showSearchingIcon();
|
||||
|
||||
Reference in New Issue
Block a user