summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
blob: 5ef586bbdc6927a75c1988d6f4743c924da01190 (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;

public slots:
  void fit();
  void scale(double scale);

protected:
  void resizeEvent(QResizeEvent *event) override;

private:
  Ui::MainWindow *ui;
  QPixmap current;
  const QString title_format{"qimv [%1]"};
};