mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Annotate overridden methods
This commit is contained in:
parent
9140d66693
commit
f29724e404
@ -26,8 +26,8 @@ protected:
|
||||
|
||||
QSize coverSize;
|
||||
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
//QPropertyAnimation * animation;
|
||||
|
||||
public:
|
||||
|
@ -24,7 +24,7 @@ private:
|
||||
public slots:
|
||||
void goTo();
|
||||
void setNumPages(unsigned int numPages);
|
||||
void open();
|
||||
void open() override;
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
};
|
||||
|
@ -30,11 +30,11 @@ class GoToFlow : public GoToFlowWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToFlow(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
||||
~GoToFlow();
|
||||
~GoToFlow() override;
|
||||
bool ready; //comic is ready for read.
|
||||
private:
|
||||
YACReaderFlow *flow;
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
//Comic * comic;
|
||||
QSize imageSize;
|
||||
|
||||
@ -45,22 +45,22 @@ private:
|
||||
QVector<QByteArray> rawImages;
|
||||
QTimer *updateTimer;
|
||||
PageLoader *worker;
|
||||
virtual void wheelEvent(QWheelEvent *event);
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
QMutex mutexGoToFlow;
|
||||
|
||||
private slots:
|
||||
void preload();
|
||||
void updateImageData();
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
public slots:
|
||||
void centerSlide(int slide);
|
||||
void reset();
|
||||
void setNumSlides(unsigned int slides);
|
||||
void setImageReady(int index, const QByteArray &image);
|
||||
void setFlowType(FlowType flowType);
|
||||
void updateConfig(QSettings *settings);
|
||||
void setFlowRightToLeft(bool b);
|
||||
void centerSlide(int slide) override;
|
||||
void reset() override;
|
||||
void setNumSlides(unsigned int slides) override;
|
||||
void setImageReady(int index, const QByteArray &image) override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void setFlowRightToLeft(bool b) override;
|
||||
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
@ -73,7 +73,7 @@ class PageLoader : public QThread
|
||||
{
|
||||
public:
|
||||
PageLoader(QMutex *m);
|
||||
~PageLoader();
|
||||
~PageLoader() override;
|
||||
// returns FALSE if worker is still busy and can't take the task
|
||||
bool busy() const;
|
||||
void generate(int index, QSize size, const QByteArray &rImage);
|
||||
@ -82,7 +82,7 @@ public:
|
||||
QImage result() const { return img; }
|
||||
|
||||
protected:
|
||||
void run();
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
QMutex *mutex;
|
||||
|
@ -17,23 +17,23 @@ class GoToFlowGL : public GoToFlowWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
GoToFlowGL(QWidget *parent = nullptr, FlowType flowType = CoverFlowLike);
|
||||
~GoToFlowGL();
|
||||
void reset();
|
||||
void centerSlide(int slide);
|
||||
void setFlowType(FlowType flowType);
|
||||
void setNumSlides(unsigned int slides);
|
||||
void setImageReady(int index, const QByteArray &image);
|
||||
~GoToFlowGL() override;
|
||||
void reset() override;
|
||||
void centerSlide(int slide) override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void setNumSlides(unsigned int slides) override;
|
||||
void setImageReady(int index, const QByteArray &image) override;
|
||||
|
||||
void updateConfig(QSettings *settings);
|
||||
void setFlowRightToLeft(bool b);
|
||||
void setFlowRightToLeft(bool b) override;
|
||||
|
||||
signals:
|
||||
void goToPage(unsigned int page);
|
||||
|
||||
private:
|
||||
YACReaderPageFlowGL *flow;
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
//Comic * comic;
|
||||
QSize imageSize;
|
||||
};
|
||||
|
@ -21,7 +21,7 @@ private:
|
||||
QPushButton *goToButton;
|
||||
QLabel *pageHint;
|
||||
QWidget *bar;
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
public:
|
||||
GoToFlowToolBar(QWidget *parent = nullptr);
|
||||
|
@ -20,7 +20,7 @@ protected:
|
||||
|
||||
public:
|
||||
GoToFlowWidget(QWidget *paret = nullptr);
|
||||
virtual ~GoToFlowWidget() = 0;
|
||||
~GoToFlowWidget() override = 0;
|
||||
public slots:
|
||||
virtual void reset() = 0;
|
||||
virtual void centerSlide(int slide) = 0;
|
||||
@ -33,7 +33,7 @@ public slots:
|
||||
virtual void setFlowRightToLeft(bool b) = 0;
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
//bool eventFilter(QObject *, QEvent *);
|
||||
};
|
||||
|
||||
|
@ -12,16 +12,16 @@ class MagnifyingGlass : public QLabel
|
||||
private:
|
||||
float zoomLevel;
|
||||
void setup(const QSize &size);
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
|
||||
public:
|
||||
MagnifyingGlass(int width, int height, QWidget *parent);
|
||||
MagnifyingGlass(const QSize &size, QWidget *parent);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
public slots:
|
||||
void updateImage(int x, int y);
|
||||
void updateImage();
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
void sizeUp();
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
bool event(QEvent *event)
|
||||
bool event(QEvent *event) override
|
||||
{
|
||||
switch (event->type()) {
|
||||
case QEvent::FileOpen:
|
||||
|
@ -156,11 +156,11 @@ private:
|
||||
void getSiblingComics(QString path, QString currentComic);
|
||||
|
||||
//! Manejadores de evento:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
//void resizeEvent(QResizeEvent * event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
void dropEvent(QDropEvent *event) override;
|
||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||
|
||||
QSettings *settings;
|
||||
|
||||
@ -178,11 +178,11 @@ signals:
|
||||
void closed();
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent *event);
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
void sendComic();
|
||||
|
||||
public:
|
||||
MainWindowViewer();
|
||||
~MainWindowViewer();
|
||||
~MainWindowViewer() override;
|
||||
};
|
||||
#endif
|
||||
|
@ -16,7 +16,7 @@ private:
|
||||
QGraphicsOpacityEffect *effect;
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
public:
|
||||
NotificationsLabelWidget(QWidget *parent);
|
||||
|
@ -48,8 +48,8 @@ private:
|
||||
YACReaderSpinSliderWidget *gammaS;
|
||||
|
||||
public slots:
|
||||
void saveOptions();
|
||||
void restoreOptions(QSettings *settings);
|
||||
void saveOptions() override;
|
||||
void restoreOptions(QSettings *settings) override;
|
||||
void findFolder();
|
||||
void updateColor(const QColor &color);
|
||||
//void fitToWidthRatio(int value);
|
||||
|
@ -14,7 +14,7 @@ private:
|
||||
QPropertyAnimation *animation;
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
public:
|
||||
PageLabelWidget(QWidget *parent);
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
enum NeighborghoodSize { SMALL = 9,
|
||||
LARGE = 25 };
|
||||
MeanNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||
virtual QImage setFilter(const QImage &image);
|
||||
QImage setFilter(const QImage &image) override;
|
||||
|
||||
private:
|
||||
enum NeighborghoodSize neighborghoodSize;
|
||||
@ -49,7 +49,7 @@ public:
|
||||
enum NeighborghoodSize { SMALL = 9,
|
||||
LARGE = 25 };
|
||||
MedianNoiseReductionFilter(enum NeighborghoodSize ns = SMALL);
|
||||
virtual QImage setFilter(const QImage &image);
|
||||
QImage setFilter(const QImage &image) override;
|
||||
|
||||
private:
|
||||
enum NeighborghoodSize neighborghoodSize;
|
||||
@ -59,21 +59,21 @@ class BrightnessFilter : public ImageFilter
|
||||
{
|
||||
public:
|
||||
BrightnessFilter(int l = -1);
|
||||
virtual QImage setFilter(const QImage &image);
|
||||
QImage setFilter(const QImage &image) override;
|
||||
};
|
||||
|
||||
class ContrastFilter : public ImageFilter
|
||||
{
|
||||
public:
|
||||
ContrastFilter(int l = -1);
|
||||
virtual QImage setFilter(const QImage &image);
|
||||
QImage setFilter(const QImage &image) override;
|
||||
};
|
||||
|
||||
class GammaFilter : public ImageFilter
|
||||
{
|
||||
public:
|
||||
GammaFilter(int l = -1);
|
||||
virtual QImage setFilter(const QImage &image);
|
||||
QImage setFilter(const QImage &image) override;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@ -98,7 +98,7 @@ private:
|
||||
QImage *page;
|
||||
unsigned int degrees;
|
||||
QVector<ImageFilter *> filters;
|
||||
void run();
|
||||
void run() override;
|
||||
Render *render;
|
||||
signals:
|
||||
void pageReady(int);
|
||||
@ -132,7 +132,7 @@ class Render : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
Render();
|
||||
~Render();
|
||||
~Render() override;
|
||||
|
||||
public slots:
|
||||
void render();
|
||||
|
@ -26,7 +26,7 @@ class YACReaderTranslator : public QWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
YACReaderTranslator(QWidget *parent = nullptr);
|
||||
~YACReaderTranslator();
|
||||
~YACReaderTranslator() override;
|
||||
|
||||
public slots:
|
||||
void play();
|
||||
@ -39,9 +39,9 @@ protected slots:
|
||||
void clear();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
void hideResults();
|
||||
|
||||
void populateCombos();
|
||||
@ -80,7 +80,7 @@ private:
|
||||
QString text;
|
||||
QString from;
|
||||
QString to;
|
||||
void run();
|
||||
void run() override;
|
||||
};
|
||||
|
||||
class TextToSpeachLoader : public QThread
|
||||
@ -96,6 +96,6 @@ signals:
|
||||
private:
|
||||
QString text;
|
||||
QString language;
|
||||
void run();
|
||||
void run() override;
|
||||
};
|
||||
#endif
|
||||
|
@ -87,8 +87,8 @@ public slots:
|
||||
void translatorSwitch();
|
||||
void animateShowTranslator();
|
||||
void animateHideTranslator();
|
||||
virtual void mousePressEvent(QMouseEvent *event);
|
||||
virtual void mouseReleaseEvent(QMouseEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||
void updateBackgroundColor(const QColor &color);
|
||||
void updateConfig(QSettings *settings);
|
||||
void showMessageErrorOpening();
|
||||
@ -155,10 +155,10 @@ private:
|
||||
bool restoreMagnifyingGlass;
|
||||
|
||||
//! Manejadores de evento:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
|
||||
//!ZigzagScroll
|
||||
enum scrollDirection { UP,
|
||||
|
@ -18,8 +18,8 @@ public:
|
||||
void show();
|
||||
|
||||
protected:
|
||||
virtual void focusOutEvent(QFocusEvent *event);
|
||||
virtual void paintEvent(QPaintEvent *);
|
||||
void focusOutEvent(QFocusEvent *event) override;
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
public slots:
|
||||
void updateText(int value);
|
||||
|
@ -11,7 +11,7 @@ class YACReaderLocalClient : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderLocalClient(QObject *parent = nullptr);
|
||||
~YACReaderLocalClient();
|
||||
~YACReaderLocalClient() override;
|
||||
signals:
|
||||
void finished();
|
||||
public slots:
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
int exec();
|
||||
int exec() override;
|
||||
|
||||
protected slots:
|
||||
void validateName(const QString &name);
|
||||
|
@ -8,7 +8,7 @@ class BundleCreator : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
BundleCreator(void);
|
||||
~BundleCreator(void);
|
||||
~BundleCreator(void) override;
|
||||
};
|
||||
|
||||
#endif
|
@ -20,21 +20,21 @@ class ClassicComicsView : public ComicsView
|
||||
Q_OBJECT
|
||||
public:
|
||||
ClassicComicsView(QWidget *parent = 0);
|
||||
void setToolBar(QToolBar *toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setToolBar(QToolBar *toolBar) override;
|
||||
void setModel(ComicModel *model) override;
|
||||
|
||||
QModelIndex currentIndex();
|
||||
QItemSelectionModel *selectionModel();
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void updateConfig(QSettings *settings);
|
||||
void enableFilterMode(bool enabled);
|
||||
void selectIndex(int index);
|
||||
void updateCurrentComicView();
|
||||
QModelIndex currentIndex() override;
|
||||
QItemSelectionModel *selectionModel() override;
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||
void toFullScreen() override;
|
||||
void toNormal() override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void enableFilterMode(bool enabled) override;
|
||||
void selectIndex(int index) override;
|
||||
void updateCurrentComicView() override;
|
||||
|
||||
public slots:
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
void setCurrentIndex(const QModelIndex &index) override;
|
||||
void centerComicFlow(const QModelIndex &mi);
|
||||
void updateTableView(int i);
|
||||
void saveTableHeadersStatus();
|
||||
@ -42,8 +42,8 @@ public slots:
|
||||
void applyModelChanges(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
|
||||
void removeItemsFromFlow(const QModelIndex &parent, int from, int to);
|
||||
//ComicsView
|
||||
void setShowMarks(bool show);
|
||||
void selectAll();
|
||||
void setShowMarks(bool show) override;
|
||||
void selectAll() override;
|
||||
void selectedComicForOpening(const QModelIndex &mi);
|
||||
|
||||
protected slots:
|
||||
@ -60,7 +60,7 @@ private:
|
||||
QSplitter *sVertical;
|
||||
ComicFlowWidget *comicFlow;
|
||||
QSettings *settings;
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
QAction *hideFlowViewAction;
|
||||
|
||||
QStackedWidget *stack;
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
|
||||
void setImagePaths(const QStringList &paths);
|
||||
//bool eventFilter(QObject *target, QEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void removeSlide(int cover);
|
||||
void resortCovers(QList<int> newOrder);
|
||||
|
||||
@ -48,7 +48,7 @@ class ImageLoader : public QThread
|
||||
{
|
||||
public:
|
||||
ImageLoader();
|
||||
~ImageLoader();
|
||||
~ImageLoader() override;
|
||||
// returns FALSE if worker is still busy and can't take the task
|
||||
bool busy() const;
|
||||
void generate(int index, const QString &fileName, QSize size);
|
||||
@ -59,7 +59,7 @@ public:
|
||||
QImage result();
|
||||
|
||||
protected:
|
||||
void run();
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
QMutex mutex;
|
||||
|
@ -46,32 +46,32 @@ private:
|
||||
public:
|
||||
ComicFlowWidgetSW(QWidget *parent = nullptr);
|
||||
|
||||
void setShowMarks(bool value);
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
||||
void setMarkImage(QImage &image);
|
||||
void markSlide(int index, YACReaderComicReadStatus status);
|
||||
void unmarkSlide(int index);
|
||||
void setSlideSize(QSize size);
|
||||
void clear();
|
||||
void setImagePaths(QStringList paths);
|
||||
void setCenterIndex(int index);
|
||||
void showSlide(int index);
|
||||
void setShowMarks(bool value) override;
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks) override;
|
||||
void setMarkImage(QImage &image) override;
|
||||
void markSlide(int index, YACReaderComicReadStatus status) override;
|
||||
void unmarkSlide(int index) override;
|
||||
void setSlideSize(QSize size) override;
|
||||
void clear() override;
|
||||
void setImagePaths(QStringList paths) override;
|
||||
void setCenterIndex(int index) override;
|
||||
void showSlide(int index) override;
|
||||
int centerIndex();
|
||||
void updateMarks();
|
||||
void setFlowType(FlowType flowType);
|
||||
void render();
|
||||
void updateConfig(QSettings *settings);
|
||||
void remove(int cover);
|
||||
void resortCovers(QList<int> newOrder);
|
||||
void updateMarks() override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void render() override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void remove(int cover) override;
|
||||
void resortCovers(QList<int> newOrder) override;
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
QSize slideSizeW;
|
||||
QSize slideSizeF;
|
||||
};
|
||||
@ -86,23 +86,23 @@ private:
|
||||
public:
|
||||
ComicFlowWidgetGL(QWidget *parent = nullptr);
|
||||
|
||||
void setShowMarks(bool value);
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks);
|
||||
void setMarkImage(QImage &image);
|
||||
void markSlide(int index, YACReaderComicReadStatus status);
|
||||
void unmarkSlide(int index);
|
||||
void setSlideSize(QSize size);
|
||||
void clear();
|
||||
void setImagePaths(QStringList paths);
|
||||
void setCenterIndex(int index);
|
||||
void showSlide(int index);
|
||||
void setShowMarks(bool value) override;
|
||||
void setMarks(QVector<YACReaderComicReadStatus> marks) override;
|
||||
void setMarkImage(QImage &image) override;
|
||||
void markSlide(int index, YACReaderComicReadStatus status) override;
|
||||
void unmarkSlide(int index) override;
|
||||
void setSlideSize(QSize size) override;
|
||||
void clear() override;
|
||||
void setImagePaths(QStringList paths) override;
|
||||
void setCenterIndex(int index) override;
|
||||
void showSlide(int index) override;
|
||||
int centerIndex();
|
||||
void updateMarks();
|
||||
void setFlowType(FlowType flowType);
|
||||
void render();
|
||||
void updateConfig(QSettings *settings);
|
||||
void remove(int cover);
|
||||
void resortCovers(QList<int> newOrder);
|
||||
void updateMarks() override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void render() override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void remove(int cover) override;
|
||||
void resortCovers(QList<int> newOrder) override;
|
||||
//public slots:
|
||||
// void setCF_RX(int value);
|
||||
// //the Y Rotation of the Coverflow
|
||||
@ -122,13 +122,13 @@ public:
|
||||
// void setY_Distance(int value);
|
||||
// void setPreset(const Preset & p);
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
QSize minimumSizeHint() const override;
|
||||
QSize sizeHint() const override;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
@ -12,7 +12,7 @@ class ApiKeyDialog : public QDialog
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ApiKeyDialog(QWidget *parent = nullptr);
|
||||
~ApiKeyDialog();
|
||||
~ApiKeyDialog() override;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
@ -11,7 +11,7 @@ class ComicVineClient : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ComicVineClient(QObject *parent = nullptr);
|
||||
~ComicVineClient();
|
||||
~ComicVineClient() override;
|
||||
|
||||
signals:
|
||||
void searchResult(QString);
|
||||
|
@ -30,8 +30,8 @@ public:
|
||||
QString databasePath;
|
||||
QString basePath;
|
||||
void setComics(const QList<ComicDB> &comics);
|
||||
QSize sizeHint() const;
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
QSize minimumSizeHint() const override;
|
||||
|
||||
signals:
|
||||
|
||||
|
@ -14,14 +14,14 @@ public:
|
||||
void load(QList<ComicDB> &comics);
|
||||
|
||||
//QAbstractItemModel methods
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QList<ComicDB> getData();
|
||||
|
||||
void removeComics(const QList<QModelIndex> &selectedIndexes);
|
||||
|
@ -8,17 +8,17 @@ class VolumeComicsModel : public JSONModel
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit VolumeComicsModel(QObject *parent = nullptr);
|
||||
void load(const QString &json);
|
||||
void load(const QString &json) override;
|
||||
//void load(const QStringList & jsonList);
|
||||
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
@ -10,17 +10,17 @@ public:
|
||||
explicit VolumesModel(QObject *parent = nullptr);
|
||||
virtual ~VolumesModel();
|
||||
//receive a valid json with a list of volumes
|
||||
void load(const QString &json);
|
||||
void load(const QString &json) override;
|
||||
|
||||
//QAbstractItemModel methods
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
QString getVolumeId(const QModelIndex &index) const;
|
||||
int getNumIssues(const QModelIndex &index) const;
|
||||
|
@ -12,7 +12,7 @@ public:
|
||||
ScraperLineEdit(const QString &title, QWidget *widget = nullptr);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *);
|
||||
void resizeEvent(QResizeEvent *) override;
|
||||
|
||||
private:
|
||||
QLabel *titleLabel;
|
||||
|
@ -15,7 +15,7 @@ class SelectComic : public ScraperSelector
|
||||
Q_OBJECT
|
||||
public:
|
||||
SelectComic(QWidget *parent = nullptr);
|
||||
void load(const QString &json, const QString &searchString);
|
||||
void load(const QString &json, const QString &searchString) override;
|
||||
virtual ~SelectComic();
|
||||
|
||||
public slots:
|
||||
|
@ -17,7 +17,7 @@ class SelectVolume : public ScraperSelector
|
||||
Q_OBJECT
|
||||
public:
|
||||
SelectVolume(QWidget *parent = nullptr);
|
||||
void load(const QString &json, const QString &searchString);
|
||||
void load(const QString &json, const QString &searchString) override;
|
||||
virtual ~SelectVolume();
|
||||
|
||||
public slots:
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
virtual ~ScrapperToolButton() {}
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *e)
|
||||
void paintEvent(QPaintEvent *e) override
|
||||
{
|
||||
QPainter p(this);
|
||||
|
||||
|
@ -52,8 +52,8 @@ protected:
|
||||
ComicModel *model;
|
||||
|
||||
//Drop to import
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||
void dropEvent(QDropEvent *event) override;
|
||||
|
||||
QQuickWidget *view;
|
||||
QWidget *container;
|
||||
|
@ -11,7 +11,7 @@ public:
|
||||
QSize sizeHint();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
};
|
||||
|
||||
#endif // COMICS_VIEW_TRANSITION_H
|
||||
|
@ -10,7 +10,7 @@ class ComicItem : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComicItem(const QList<QVariant> &data);
|
||||
~ComicItem();
|
||||
~ComicItem() override;
|
||||
int columnCount() const;
|
||||
QVariant data(int column) const;
|
||||
void setData(int column, const QVariant &value);
|
||||
|
@ -67,19 +67,19 @@ public:
|
||||
public:
|
||||
ComicModel(QObject *parent = 0);
|
||||
ComicModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
||||
~ComicModel();
|
||||
~ComicModel() override;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column,
|
||||
const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||
bool canBeResorted();
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
||||
QStringList mimeTypes() const;
|
||||
@ -130,7 +130,7 @@ public:
|
||||
|
||||
ComicModel::Mode getMode() { return mode; }
|
||||
|
||||
QHash<int, QByteArray> roleNames() const;
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
public slots:
|
||||
void remove(int row);
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
void exportComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
||||
|
||||
private:
|
||||
void run();
|
||||
void run() override;
|
||||
};
|
||||
|
||||
class ComicsInfoImporter : public QThread
|
||||
@ -26,7 +26,7 @@ public:
|
||||
void importComicsInfo(QSqlDatabase &source, QSqlDatabase &dest);
|
||||
|
||||
private:
|
||||
void run();
|
||||
void run() override;
|
||||
};
|
||||
|
||||
class DataBaseManagement : public QObject
|
||||
|
@ -57,14 +57,14 @@ class FolderModelProxy : public QSortFilterProxyModel
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FolderModelProxy(QObject *parent = 0);
|
||||
~FolderModelProxy();
|
||||
~FolderModelProxy() override;
|
||||
|
||||
void setFilter(const YACReader::SearchModifiers modifier, QString filter, bool includeComics);
|
||||
void setupFilteredModelData(QSqlQuery &sqlquery, FolderItem *parent);
|
||||
void setupFilteredModelData();
|
||||
void clear();
|
||||
|
||||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
|
||||
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
|
||||
|
||||
protected:
|
||||
FolderItem *rootItem;
|
||||
@ -87,18 +87,18 @@ class FolderModel : public QAbstractItemModel
|
||||
public:
|
||||
FolderModel(QObject *parent = 0);
|
||||
FolderModel(QSqlQuery &sqlquery, QObject *parent = 0);
|
||||
~FolderModel();
|
||||
~FolderModel() override;
|
||||
|
||||
//QAbstractItemModel methods
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column,
|
||||
const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
//Convenience methods
|
||||
void setupModelData(QString path);
|
||||
|
@ -26,7 +26,7 @@ class SpecialListItem : public ListItem
|
||||
{
|
||||
public:
|
||||
SpecialListItem(const QList<QVariant> &data);
|
||||
QIcon getIcon() const;
|
||||
QIcon getIcon() const override;
|
||||
ReadingListModel::TypeSpecialList getType() const;
|
||||
|
||||
private:
|
||||
@ -42,11 +42,11 @@ class LabelItem : public ListItem
|
||||
{
|
||||
public:
|
||||
LabelItem(const QList<QVariant> &data);
|
||||
QIcon getIcon() const;
|
||||
QIcon getIcon() const override;
|
||||
YACReader::LabelColors colorid() const;
|
||||
QString name() const;
|
||||
void setName(const QString &name);
|
||||
qulonglong getId() const;
|
||||
qulonglong getId() const override;
|
||||
|
||||
private:
|
||||
enum DataIndexes {
|
||||
@ -63,7 +63,7 @@ class ReadingListItem : public ListItem
|
||||
{
|
||||
public:
|
||||
ReadingListItem(const QList<QVariant> &data, ReadingListItem *parent = nullptr);
|
||||
QIcon getIcon() const;
|
||||
QIcon getIcon() const override;
|
||||
ReadingListItem *parent;
|
||||
int childCount() const;
|
||||
int row() const;
|
||||
@ -71,7 +71,7 @@ public:
|
||||
void appendChild(ReadingListItem *item);
|
||||
void appendChild(ReadingListItem *item, int pos);
|
||||
void removeChild(ReadingListItem *item);
|
||||
qulonglong getId() const;
|
||||
qulonglong getId() const override;
|
||||
QString name() const;
|
||||
void setName(const QString &name);
|
||||
int getOrdering() const;
|
||||
@ -96,7 +96,7 @@ class ReadingListSeparatorItem : public ListItem
|
||||
{
|
||||
public:
|
||||
ReadingListSeparatorItem();
|
||||
QIcon getIcon() const;
|
||||
QIcon getIcon() const override;
|
||||
};
|
||||
|
||||
#endif // READING_LIST_ITEM_H
|
||||
|
@ -29,18 +29,18 @@ public:
|
||||
explicit ReadingListModel(QObject *parent = 0);
|
||||
|
||||
//QAbstractItemModel methods
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation,
|
||||
int role = Qt::DisplayRole) const;
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column,
|
||||
const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex parent(const QModelIndex &index) const;
|
||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
||||
const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||
|
||||
//Convenience methods
|
||||
void setupReadingListsData(QString path);
|
||||
|
@ -16,7 +16,7 @@ signals:
|
||||
public slots:
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
|
||||
QLabel *iconLabel;
|
||||
QLabel *titleLabel;
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
virtual ~ListviewDelegate() {}
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
const QModelIndex &index) const override
|
||||
{
|
||||
painter->save();
|
||||
|
||||
@ -57,7 +57,7 @@ public:
|
||||
}
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
const QModelIndex &index) const override
|
||||
{
|
||||
QFontMetrics fm(option.font);
|
||||
QString text = qvariant_cast<QString>(index.data(Qt::DisplayRole));
|
||||
|
@ -27,8 +27,8 @@ protected:
|
||||
QString backgroundColor;
|
||||
|
||||
//Drop to import
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||
void dropEvent(QDropEvent *event) override;
|
||||
};
|
||||
|
||||
#endif // EMPTY_FOLDER_WIDGET_H
|
||||
|
@ -12,7 +12,7 @@ class ExportComicsInfoDialog : public QDialog
|
||||
|
||||
public:
|
||||
ExportComicsInfoDialog(QWidget *parent = nullptr);
|
||||
~ExportComicsInfoDialog();
|
||||
~ExportComicsInfoDialog() override;
|
||||
QString source;
|
||||
|
||||
public slots:
|
||||
|
@ -21,25 +21,25 @@ class GridComicsView : public ComicsView
|
||||
public:
|
||||
explicit GridComicsView(QWidget *parent = 0);
|
||||
virtual ~GridComicsView();
|
||||
void setToolBar(QToolBar *toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
QModelIndex currentIndex();
|
||||
QItemSelectionModel *selectionModel();
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void updateConfig(QSettings *settings);
|
||||
void enableFilterMode(bool enabled);
|
||||
void setToolBar(QToolBar *toolBar) override;
|
||||
void setModel(ComicModel *model) override;
|
||||
void setCurrentIndex(const QModelIndex &index) override;
|
||||
QModelIndex currentIndex() override;
|
||||
QItemSelectionModel *selectionModel() override;
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||
void toFullScreen() override;
|
||||
void toNormal() override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void enableFilterMode(bool enabled) override;
|
||||
QSize sizeHint();
|
||||
QByteArray getMimeDataFromSelection();
|
||||
void updateCurrentComicView();
|
||||
void updateCurrentComicView() override;
|
||||
|
||||
public slots:
|
||||
//ComicsView
|
||||
void setShowMarks(bool show);
|
||||
void selectAll();
|
||||
void selectIndex(int index);
|
||||
void setShowMarks(bool show) override;
|
||||
void selectAll() override;
|
||||
void selectIndex(int index) override;
|
||||
void triggerOpenCurrentComic();
|
||||
|
||||
void updateBackgroundConfig();
|
||||
@ -93,7 +93,7 @@ private:
|
||||
ComicDB currentComic;
|
||||
|
||||
bool dummy;
|
||||
void closeEvent(QCloseEvent *event);
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
void createCoverSizeSliderWidget();
|
||||
};
|
||||
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
QString dest;
|
||||
|
||||
private:
|
||||
void run();
|
||||
void run() override;
|
||||
};
|
||||
|
||||
class ImportComicsInfoDialog : public QDialog
|
||||
|
@ -29,7 +29,7 @@ private:
|
||||
QProgressBar *progressBar;
|
||||
void setupUI();
|
||||
int progressCount;
|
||||
void closeEvent(QCloseEvent *e);
|
||||
void closeEvent(QCloseEvent *e) override;
|
||||
YACReaderLibraries libraries;
|
||||
public slots:
|
||||
void add();
|
||||
|
@ -41,7 +41,7 @@ private:
|
||||
|
||||
QToolButton *hideButton;
|
||||
|
||||
void resizeEvent(QResizeEvent *event);
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
};
|
||||
|
||||
#endif // IMPORT_WIDGET_H
|
||||
|
@ -13,23 +13,23 @@ class InfoComicsView : public ComicsView
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit InfoComicsView(QWidget *parent = nullptr);
|
||||
~InfoComicsView();
|
||||
void setToolBar(QToolBar *toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
QModelIndex currentIndex();
|
||||
QItemSelectionModel *selectionModel();
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint);
|
||||
void toFullScreen();
|
||||
void toNormal();
|
||||
void updateConfig(QSettings *settings);
|
||||
void enableFilterMode(bool enabled);
|
||||
void selectIndex(int index);
|
||||
void updateCurrentComicView();
|
||||
~InfoComicsView() override;
|
||||
void setToolBar(QToolBar *toolBar) override;
|
||||
void setModel(ComicModel *model) override;
|
||||
void setCurrentIndex(const QModelIndex &index) override;
|
||||
QModelIndex currentIndex() override;
|
||||
QItemSelectionModel *selectionModel() override;
|
||||
void scrollTo(const QModelIndex &mi, QAbstractItemView::ScrollHint hint) override;
|
||||
void toFullScreen() override;
|
||||
void toNormal() override;
|
||||
void updateConfig(QSettings *settings) override;
|
||||
void enableFilterMode(bool enabled) override;
|
||||
void selectIndex(int index) override;
|
||||
void updateCurrentComicView() override;
|
||||
|
||||
public slots:
|
||||
void setShowMarks(bool show);
|
||||
void selectAll();
|
||||
void selectAll() override;
|
||||
|
||||
protected slots:
|
||||
void setCurrentIndex(int index);
|
||||
|
@ -43,7 +43,7 @@ private:
|
||||
//recursive method
|
||||
void create(QDir currentDirectory);
|
||||
void update(QDir currentDirectory);
|
||||
void run();
|
||||
void run() override;
|
||||
qulonglong insertFolders(); //devuelve el id del último folder añadido (último en la ruta)
|
||||
bool checkCover(const QString &hash);
|
||||
void insertComic(const QString &relativePath, const QFileInfo &fileInfo);
|
||||
|
@ -18,7 +18,7 @@ public slots:
|
||||
protected:
|
||||
QLabel *iconLabel;
|
||||
QLabel *titleLabel;
|
||||
void paintEvent(QPaintEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
QString backgroundColor;
|
||||
};
|
||||
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void editApiKey();
|
||||
void restoreOptions(QSettings *settings);
|
||||
void restoreOptions(QSettings *settings) override;
|
||||
|
||||
private slots:
|
||||
void useBackgroundImageCheckClicked(bool checked);
|
||||
|
@ -110,7 +110,7 @@ private:
|
||||
void setDisableUniqueValues(bool disabled);
|
||||
|
||||
QList<ComicDB> comics;
|
||||
void closeEvent(QCloseEvent *e);
|
||||
void closeEvent(QCloseEvent *e) override;
|
||||
void updateCoverPageNumberLabel(int n);
|
||||
|
||||
bool coverChanged;
|
||||
@ -122,7 +122,7 @@ public:
|
||||
QString databasePath;
|
||||
QString basePath;
|
||||
QSize sizeHint();
|
||||
void paintEvent(QPaintEvent *event);
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
public slots:
|
||||
void setComics(QList<ComicDB> comics);
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
ComicController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COMICCONTROLLER_H
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
ComicDownloadInfoController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
CoverController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COVERCONTROLLER_H
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
ErrorController(int errorCode);
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
int error;
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
FolderController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // FOLDERCONTROLLER_H
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
FolderInfoController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
LibrariesController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // LIBRARIESCONTROLLER_H
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
PageController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // PAGECONTROLLER_H
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
SyncController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // SYNCCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
UpdateComicController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // UPDATECOMICCONTROLLER_H
|
||||
|
@ -18,7 +18,7 @@ public:
|
||||
ComicControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COMICCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
ComicDownloadInfoControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COMICDOWNLOADINFOCONTROLLER_H
|
||||
|
@ -12,7 +12,7 @@ class ComicFullinfoController_v2 : public HttpRequestHandler
|
||||
public:
|
||||
ComicFullinfoController_v2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, const qulonglong &comicId, HttpResponse &response);
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
CoverControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // COVERCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
ErrorControllerV2(int errorCode);
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
int error;
|
||||
|
@ -12,7 +12,7 @@ class FavoritesControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
FavoritesControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int library, HttpResponse &response);
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
FolderContentControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
FolderInfoControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceComics(const int &library, const qulonglong &folderId, HttpResponse &response);
|
||||
|
@ -18,7 +18,7 @@ public:
|
||||
LibrariesControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // LIBRARIESCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
PageControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // PAGECONTROLLER_H
|
||||
|
@ -12,7 +12,7 @@ class ReadingComicsControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
ReadingComicsControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, HttpResponse &response);
|
||||
|
@ -12,7 +12,7 @@ class ReadingListContentControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
ReadingListContentControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
||||
|
@ -12,7 +12,7 @@ class ReadingListInfoControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
ReadingListInfoControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceComics(const int &library, const qulonglong &readingListId, HttpResponse &response);
|
||||
|
@ -12,7 +12,7 @@ class ReadingListsControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
ReadingListsControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int library, HttpResponse &response);
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
SyncControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // SYNCCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
TagContentControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceContent(const int &library, const qulonglong &tagId, HttpResponse &response);
|
||||
|
@ -12,7 +12,7 @@ class TagInfoControllerV2 : public HttpRequestHandler
|
||||
public:
|
||||
TagInfoControllerV2();
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
|
||||
private:
|
||||
void serviceComics(const int &library, const qulonglong &tagId, HttpResponse &response);
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
TagsControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // TAGSCONTROLLER_H
|
||||
|
@ -14,7 +14,7 @@ public:
|
||||
UpdateComicControllerV2();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // UPDATECOMICCONTROLLER_H
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
VersionController();
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
};
|
||||
|
||||
#endif // VERSIONCONTROLLER_H
|
||||
|
@ -91,7 +91,7 @@ private:
|
||||
QSslConfiguration* sslConfiguration;
|
||||
|
||||
/** Executes the threads own event loop */
|
||||
void run();
|
||||
void run() override;
|
||||
|
||||
/** Create SSL or TCP socket */
|
||||
void createSocket();
|
||||
|
@ -71,7 +71,7 @@ public:
|
||||
protected:
|
||||
|
||||
/** Serves new incoming connection requests */
|
||||
void incomingConnection(tSocketDescriptor socketDescriptor);
|
||||
void incomingConnection(tSocketDescriptor socketDescriptor) override;
|
||||
|
||||
private:
|
||||
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
StaticFileController(QSettings* settings, QObject* parent = nullptr);
|
||||
|
||||
/** Generates the response */
|
||||
void service(HttpRequest& request, HttpResponse& response);
|
||||
void service(HttpRequest& request, HttpResponse& response) override;
|
||||
|
||||
private:
|
||||
|
||||
|
@ -16,7 +16,7 @@ class RequestMapper : public HttpRequestHandler
|
||||
public:
|
||||
RequestMapper(QObject *parent = nullptr);
|
||||
|
||||
void service(HttpRequest &request, HttpResponse &response);
|
||||
void service(HttpRequest &request, HttpResponse &response) override;
|
||||
void loadSessionV1(HttpRequest &request, HttpResponse &response);
|
||||
void loadSessionV2(HttpRequest &request, HttpResponse &response);
|
||||
|
||||
|
@ -10,7 +10,7 @@ class YACReaderHttpSession : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderHttpSession(QObject *parent = nullptr);
|
||||
~YACReaderHttpSession();
|
||||
~YACReaderHttpSession() override;
|
||||
|
||||
void setComicsOnDevice(const QSet<QString> &set);
|
||||
void setComicOnDevice(const QString &hash);
|
||||
|
@ -18,10 +18,10 @@ signals:
|
||||
|
||||
protected:
|
||||
//Drop to import
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragLeaveEvent(QDragLeaveEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||
void dragLeaveEvent(QDragLeaveEvent *event) override;
|
||||
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||
void dropEvent(QDropEvent *event) override;
|
||||
};
|
||||
|
||||
class YACReaderFoldersViewItemDeletegate : public QStyledItemDelegate
|
||||
@ -29,7 +29,7 @@ class YACReaderFoldersViewItemDeletegate : public QStyledItemDelegate
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderFoldersViewItemDeletegate(QObject *parent = nullptr);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
};
|
||||
|
||||
#endif // YACREADER_FOLDERS_VIEW_H
|
||||
|
@ -33,7 +33,7 @@ class YACReaderClientConnectionWorker : public QThread
|
||||
Q_OBJECT
|
||||
public:
|
||||
YACReaderClientConnectionWorker(QLocalSocket *clientConnection);
|
||||
~YACReaderClientConnectionWorker();
|
||||
~YACReaderClientConnectionWorker() override;
|
||||
signals:
|
||||
void comicUpdated(quint64 libraryId, const ComicDB &comic);
|
||||
|
||||
|
@ -15,7 +15,7 @@ class YACReaderMainToolBar : public QWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderMainToolBar(QWidget *parent = nullptr);
|
||||
QSize sizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
QToolButton *backButton;
|
||||
QToolButton *forwardButton;
|
||||
@ -32,8 +32,8 @@ signals:
|
||||
public slots:
|
||||
|
||||
private:
|
||||
void paintEvent(QPaintEvent *);
|
||||
void resizeEvent(QResizeEvent *);
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
void resizeEvent(QResizeEvent *) override;
|
||||
|
||||
QHBoxLayout *mainLayout;
|
||||
|
||||
|
@ -13,9 +13,9 @@ public:
|
||||
|
||||
protected:
|
||||
//Drop to import & internal Drag&Drop for resorting
|
||||
void dragEnterEvent(QDragEnterEvent *event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||
void dropEvent(QDropEvent *event) override;
|
||||
};
|
||||
|
||||
class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
||||
@ -23,7 +23,7 @@ class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderReadingListsViewItemDeletegate(QObject *parent = nullptr);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user