From 5084c7712e68cd7aba1ec63746aaa0d9dd56db67 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 27 Nov 2016 07:19:41 +0100 Subject: Prevent resizing of Viewer looks ugly! --- viewer.cpp | 1 + viewer.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer.cpp b/viewer.cpp index e8d5f7f..b1a3781 100644 --- a/viewer.cpp +++ b/viewer.cpp @@ -76,4 +76,5 @@ void Viewer::displayFile(int index){ adjustSize(); QString winTitle = QString(tr("%1 Viewer [%2]")).arg(qApp->applicationName()).arg(mFiles.at(mCurIndex)); setWindowTitle(winTitle); + setFixedSize(size()); } diff --git a/viewer.h b/viewer.h index 6f9537e..d95fee3 100644 --- a/viewer.h +++ b/viewer.h @@ -4,7 +4,6 @@ #include class QLabel; -class QWheelEvent; class Viewer : public QWidget { public: -- cgit v1.2.3-70-g09d2