blob: dfd704b4ca19f94a2c72f52f5ffd562d66e08782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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:
void resizePixmap();
Ui::MainWindow *ui;
QPixmap current;
const QString title_format{"qimv [%1]"};
};
|