mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
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:
1 parent
eba6810423
commit
5cfc16e9f9
5 files changed
+12
-11
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user