blob: f6b8c3201f20e45cc1d4754abc24394b1a7c2307 (
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
27
28
|
#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 fit();
void scale(double scale);
Ui::MainWindow *ui;
QPixmap current;
const QString title_format{"qimv [%1]"};
const QString scale_format{"%1%"};
};
|