QmlProfiler: Make message boxes always 300 pixels wide.

Sometimes the text would not fit and constantly resizing them is ugly
anyway.

Change-Id: Id1136ae3b2d2f339ff6f4302b45794201221e6c4
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-04-07 10:55:58 +02:00
parent f0d891758a
commit c185a15c28

View File

@@ -200,7 +200,7 @@ void QmlProfilerStateWidget::showText(const QString &text, bool showProgress)
}
d->progressBar->setVisible(showProgress);
d->text->setText(text);
resize(showProgress ? 300 : 200, 70);
resize(300, 70);
reposition();
}