diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-01 20:01:00 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-01 20:01:00 +0200 |
commit | a97f90531826b33cd5b7a2bc6cbef079b8ebaac2 (patch) | |
tree | 48e4883ba85dcbaed694362e2717cc08aa2c0c3c /src/mainwindow.h | |
download | qimv-a97f90531826b33cd5b7a2bc6cbef079b8ebaac2.tar.xz |
Initial commit
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h new file mode 100644 index 0000000..a270fd8 --- /dev/null +++ b/src/mainwindow.h @@ -0,0 +1,24 @@ +#pragma once + +#include <QMainWindow> +#include <QPixmap> + +namespace Ui { +class MainWindow; +} + +class MainWindow final : public QMainWindow { + Q_OBJECT + +public: + explicit MainWindow(const QStringList &filePaths, QWidget *parent = nullptr); + ~MainWindow() override; + +protected: + void resizeEvent(QResizeEvent *event) override; + +private: + Ui::MainWindow *ui; + QPixmap current; + const QString title_format{"qimv [%1]"}; +}; |