summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
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]"};
+};