mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Fix some warnings
This commit is contained in:
parent
d8f224645d
commit
a1e0340b3d
@ -41,7 +41,7 @@ private:
|
||||
int workerIndex;
|
||||
QTimer updateTimer;
|
||||
std::unique_ptr<WorkerThread<QImage>> worker;
|
||||
virtual void wheelEvent(QWheelEvent *event);
|
||||
virtual void wheelEvent(QWheelEvent *event) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
void setImagePaths(QStringList paths) override;
|
||||
void setCenterIndex(int index) override;
|
||||
void showSlide(int index) override;
|
||||
int centerIndex();
|
||||
int centerIndex() override;
|
||||
void updateMarks() override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void render() override;
|
||||
@ -70,7 +70,7 @@ protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
QSize minimumSizeHint() const;
|
||||
QSize minimumSizeHint() const override;
|
||||
QSize sizeHint() const override;
|
||||
QSize slideSizeW;
|
||||
QSize slideSizeF;
|
||||
@ -96,7 +96,7 @@ public:
|
||||
void setImagePaths(QStringList paths) override;
|
||||
void setCenterIndex(int index) override;
|
||||
void showSlide(int index) override;
|
||||
int centerIndex();
|
||||
int centerIndex() override;
|
||||
void updateMarks() override;
|
||||
void setFlowType(FlowType flowType) override;
|
||||
void render() override;
|
||||
|
@ -14,17 +14,18 @@ public:
|
||||
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 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 override;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
QString getComicId(const QModelIndex &index) const;
|
||||
QString getComicId(int row) const;
|
||||
QString getCoverURL(const QModelIndex &index) const;
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void addExtraRows(int numRows);
|
||||
|
||||
private:
|
||||
|
@ -17,9 +17,9 @@ public:
|
||||
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;
|
||||
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 override;
|
||||
|
||||
QString getVolumeId(const QModelIndex &index) const;
|
||||
|
@ -40,7 +40,7 @@ signals:
|
||||
private:
|
||||
static QMutex dbMutex;
|
||||
// static int count;
|
||||
void run();
|
||||
void run() override;
|
||||
|
||||
void getComicInfo(quint64 libraryId, ComicDB &comic, QList<ComicDB> &siblings);
|
||||
void getComicInfoFromReadingList(quint64 libraryId, unsigned long long readingListId, ComicDB &comic, QList<ComicDB> &siblings);
|
||||
|
@ -24,7 +24,7 @@ class YACReaderReadingListsViewItemDeletegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit YACReaderReadingListsViewItemDeletegate(QObject *parent = nullptr);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
};
|
||||
|
||||
#endif // YACREADER_READING_LISTS_VIEW_H
|
||||
|
Loading…
Reference in New Issue
Block a user