summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-01 20:01:00 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-01 20:01:00 +0200
commita97f90531826b33cd5b7a2bc6cbef079b8ebaac2 (patch)
tree48e4883ba85dcbaed694362e2717cc08aa2c0c3c /src/mainwindow.h
downloadqimv-a97f90531826b33cd5b7a2bc6cbef079b8ebaac2.tar.xz
Initial commit
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h24
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]"};
+};