From 831aaee7b8eea36b24f6ef9178a67391d2a386e7 Mon Sep 17 00:00:00 2001 From: Alexander Gorishnyak Date: Wed, 4 Nov 2015 15:36:37 +0600 Subject: [PATCH] Fix progress dialog height --- src/dialogs/dialogs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs/dialogs.cpp b/src/dialogs/dialogs.cpp index 2215ed2..0e8143f 100644 --- a/src/dialogs/dialogs.cpp +++ b/src/dialogs/dialogs.cpp @@ -81,7 +81,6 @@ void InputDialog::checkInput(QString text) ProgressDialog::ProgressDialog(QWidget *parent) : QDialog(parent) { resize(220, 100); - setFixedHeight(100); setModal(true); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); @@ -103,6 +102,8 @@ ProgressDialog::ProgressDialog(QWidget *parent) : QDialog(parent) layout->addWidget(progress); layout->addWidget(buttons); + setFixedHeight((sizeHint().height() < 100) ? 100 : sizeHint().height()); + #ifdef WINEXTRAS isWinExtras = QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA; if (isWinExtras) {