UI: Call setWindowFlags before setupUi

For some reason this has a noticeable performance improvement,
presumably because Qt is notifying all the child widgets?
This commit is contained in:
Richard Stanway 2020-03-04 23:17:03 +01:00
commit 5cfc16e9f9
5 changed files with 12 additions and 11 deletions

View file

@ -11,10 +11,10 @@ using namespace json11;
OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout)
{
ui->setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
ui->setupUi(this);
QString bitness;
QString ver;