Use Utils::resizeWindow in stream dialog too

This commit is contained in:
craig.p.drummond
2014-09-01 18:33:02 +00:00
parent bc1ff5cba6
commit 2014aeea8e
2 changed files with 5 additions and 3 deletions

View File

@@ -36,6 +36,7 @@
#include <QWidget>
#include <QStyle>
#include <QDesktopWidget>
#include <QEventLoop>
#if QT_VERSION >= 0x050000
#include <QStandardPaths>
#else
@@ -880,6 +881,7 @@ void Utils::resizeWindow(QWidget *w, bool preserveWidth, bool preserveHeight)
QWidget *window=w ? w->window() : 0;
if (window) {
QSize was=window->size();
QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
window->setMinimumSize(QSize(0, 0));
window->adjustSize();
QSize now=window->size();