Add override keyword
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ class FITSFileModel : public QSqlQueryModel
|
|||||||
QStringList m_value;
|
QStringList m_value;
|
||||||
public:
|
public:
|
||||||
FITSFileModel(QObject *parent = nullptr);
|
FITSFileModel(QObject *parent = nullptr);
|
||||||
void sort(int column, Qt::SortOrder order);
|
void sort(int column, Qt::SortOrder order) override;
|
||||||
void setColumns(const QStringList &columns);
|
void setColumns(const QStringList &columns);
|
||||||
void setFilter(const QStringList &key, const QStringList &value);
|
void setFilter(const QStringList &key, const QStringList &value);
|
||||||
protected:
|
protected:
|
||||||
@@ -46,7 +46,7 @@ class DataBaseView : public QWidget
|
|||||||
QLineEdit *m_search[3];
|
QLineEdit *m_search[3];
|
||||||
public:
|
public:
|
||||||
explicit DataBaseView(Database *database, QWidget *parent = nullptr);
|
explicit DataBaseView(Database *database, QWidget *parent = nullptr);
|
||||||
~DataBaseView();
|
~DataBaseView() override;
|
||||||
public slots:
|
public slots:
|
||||||
void selectColumns();
|
void selectColumns();
|
||||||
void loadDatabase();
|
void loadDatabase();
|
||||||
|
|||||||
+3
-3
@@ -28,9 +28,9 @@ class Filetree : public QTreeView
|
|||||||
QString m_rootDir;
|
QString m_rootDir;
|
||||||
public:
|
public:
|
||||||
explicit Filetree(QWidget *parent = nullptr);
|
explicit Filetree(QWidget *parent = nullptr);
|
||||||
~Filetree();
|
~Filetree() override;
|
||||||
void contextMenuEvent(QContextMenuEvent *event);
|
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||||
void mouseDoubleClickEvent(QMouseEvent *event);
|
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||||
signals:
|
signals:
|
||||||
void fileSelected(const QString &path);
|
void fileSelected(const QString &path);
|
||||||
void copyFiles(const QString &path);
|
void copyFiles(const QString &path);
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ class ImageInfo : public QTreeWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit ImageInfo(QWidget *parent);
|
explicit ImageInfo(QWidget *parent);
|
||||||
~ImageInfo();
|
~ImageInfo() override;
|
||||||
public slots:
|
public slots:
|
||||||
void setInfo(const ImageInfoData &info);
|
void setInfo(const ImageInfoData &info);
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ class ImageRingList : public QAbstractItemModel
|
|||||||
QThreadPool *m_thumbPool;
|
QThreadPool *m_thumbPool;
|
||||||
public:
|
public:
|
||||||
explicit ImageRingList(QObject *parent = 0);
|
explicit ImageRingList(QObject *parent = 0);
|
||||||
~ImageRingList();
|
~ImageRingList() override;
|
||||||
bool setDir(const QString path, const QString ¤tFile = QString());
|
bool setDir(const QString path, const QString ¤tFile = QString());
|
||||||
void setFile(const QString &file);
|
void setFile(const QString &file);
|
||||||
ImagePtr currentImage();
|
ImagePtr currentImage();
|
||||||
|
|||||||
+6
-6
@@ -21,12 +21,12 @@ public slots:
|
|||||||
void bestFit();
|
void bestFit();
|
||||||
void oneToOne();
|
void oneToOne();
|
||||||
protected:
|
protected:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void keyReleaseEvent(QKeyEvent *event);
|
void keyReleaseEvent(QKeyEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // IMAGESCROLLAREA_H
|
#endif // IMAGESCROLLAREA_H
|
||||||
|
|||||||
+14
-14
@@ -55,7 +55,7 @@ class ImageWidget : public QOpenGLWidget
|
|||||||
QVector<ImageThumb> m_thumnails;
|
QVector<ImageThumb> m_thumnails;
|
||||||
public:
|
public:
|
||||||
explicit ImageWidget(QWidget *parent = nullptr);
|
explicit ImageWidget(QWidget *parent = nullptr);
|
||||||
~ImageWidget();
|
~ImageWidget() override;
|
||||||
void setImage(const RawImage *image, int index);
|
void setImage(const RawImage *image, int index);
|
||||||
void setImage(const QPixmap &pixmap);
|
void setImage(const QPixmap &pixmap);
|
||||||
void setScale(float scale);
|
void setScale(float scale);
|
||||||
@@ -70,14 +70,14 @@ public slots:
|
|||||||
void thumbnailLoaded(const Image *image);
|
void thumbnailLoaded(const Image *image);
|
||||||
void showThumbnail(bool enable);
|
void showThumbnail(bool enable);
|
||||||
protected:
|
protected:
|
||||||
void paintGL();
|
void paintGL() override;
|
||||||
void resizeGL(int w, int h);
|
void resizeGL(int w, int h) override;
|
||||||
void initializeGL();
|
void initializeGL() override;
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
void dragEnterEvent(QDragEnterEvent *event) override;
|
||||||
void dropEvent(QDropEvent *event);
|
void dropEvent(QDropEvent *event) override;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
||||||
void thumbSelect(QMouseEvent *event);
|
void thumbSelect(QMouseEvent *event);
|
||||||
signals:
|
signals:
|
||||||
void fileDropped(const QString &path);
|
void fileDropped(const QString &path);
|
||||||
@@ -97,16 +97,16 @@ class ImageScrollAreaGL : public QWidget
|
|||||||
int m_thumbCount;
|
int m_thumbCount;
|
||||||
public:
|
public:
|
||||||
explicit ImageScrollAreaGL(QWidget *parent = nullptr);
|
explicit ImageScrollAreaGL(QWidget *parent = nullptr);
|
||||||
~ImageScrollAreaGL();
|
~ImageScrollAreaGL() override;
|
||||||
void setImage(RawImage *image, int index);
|
void setImage(RawImage *image, int index);
|
||||||
ImageWidget* imageWidget();
|
ImageWidget* imageWidget();
|
||||||
void setThumbnails(int count);
|
void setThumbnails(int count);
|
||||||
protected:
|
protected:
|
||||||
void updateScrollbars(bool zoom = false);
|
void updateScrollbars(bool zoom = false);
|
||||||
void resizeEvent(QResizeEvent *event);
|
void resizeEvent(QResizeEvent *event) override;
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event) override;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) override;
|
||||||
void zoom(float delta);
|
void zoom(float delta);
|
||||||
public slots:
|
public slots:
|
||||||
void zoomIn();
|
void zoomIn();
|
||||||
|
|||||||
+2
-2
@@ -18,7 +18,7 @@ class LoadRunable : public QRunnable
|
|||||||
bool m_thumbnail;
|
bool m_thumbnail;
|
||||||
public:
|
public:
|
||||||
LoadRunable(const QString &file, Image *receiver, AnalyzeLevel level, bool thumbnail = false);
|
LoadRunable(const QString &file, Image *receiver, AnalyzeLevel level, bool thumbnail = false);
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ConvertRunable : public QRunnable
|
class ConvertRunable : public QRunnable
|
||||||
@@ -27,7 +27,7 @@ class ConvertRunable : public QRunnable
|
|||||||
QString m_outfile;
|
QString m_outfile;
|
||||||
public:
|
public:
|
||||||
ConvertRunable(const QString &in, const QString &out);
|
ConvertRunable(const QString &in, const QString &out);
|
||||||
void run();
|
void run() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LOADRUNABLE_H
|
#endif // LOADRUNABLE_H
|
||||||
|
|||||||
+4
-4
@@ -30,13 +30,13 @@ class MainWindow : public QMainWindow
|
|||||||
bool _maximized;
|
bool _maximized;
|
||||||
public:
|
public:
|
||||||
MainWindow(QWidget *parent = 0);
|
MainWindow(QWidget *parent = 0);
|
||||||
~MainWindow();
|
~MainWindow() override;
|
||||||
protected:
|
protected:
|
||||||
void keyPressEvent(QKeyEvent *event);
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
void keyReleaseEvent(QKeyEvent *event);
|
void keyReleaseEvent(QKeyEvent *event) override;
|
||||||
void setupSigterm();
|
void setupSigterm();
|
||||||
static void signalHandler(int);
|
static void signalHandler(int);
|
||||||
void closeEvent(QCloseEvent *event);
|
void closeEvent(QCloseEvent *event) override;
|
||||||
void copyOrMove(bool copy);
|
void copyOrMove(bool copy);
|
||||||
void copyOrMove(bool copy, const QString &dest);
|
void copyOrMove(bool copy, const QString &dest);
|
||||||
protected slots:
|
protected slots:
|
||||||
|
|||||||
Reference in New Issue
Block a user