diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-01 21:48:01 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-11-01 21:48:01 +0200 |
commit | 49bc0a1d3e8c4a2e208ce6a7614bc34adb6f8a7a (patch) | |
tree | 494b73f6012c8d84de748c2023e33af6ee163cf9 /src/mainwindow.h | |
parent | Add original size and fit buttons (diff) | |
download | qimv-49bc0a1d3e8c4a2e208ce6a7614bc34adb6f8a7a.tar.xz |
Scale bar now rescales image
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index dfd704b..f6b8c32 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -18,9 +18,11 @@ protected: void resizeEvent(QResizeEvent *event) override; private: - void resizePixmap(); + void fit(); + void scale(double scale); Ui::MainWindow *ui; QPixmap current; const QString title_format{"qimv [%1]"}; + const QString scale_format{"%1%"}; }; |