summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-11-01 21:48:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-11-01 21:48:01 +0200
commit49bc0a1d3e8c4a2e208ce6a7614bc34adb6f8a7a (patch)
tree494b73f6012c8d84de748c2023e33af6ee163cf9 /src/mainwindow.h
parentAdd original size and fit buttons (diff)
downloadqimv-49bc0a1d3e8c4a2e208ce6a7614bc34adb6f8a7a.tar.xz
Scale bar now rescales image
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h4
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%"};
};