mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-06 14:55:06 -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:
@@ -42,10 +42,10 @@ void OBSBasicTransform::HookWidget(QWidget *widget, const char *signal,
|
||||
OBSBasicTransform::OBSBasicTransform(OBSBasic *parent)
|
||||
: QDialog(parent), ui(new Ui::OBSBasicTransform), main(parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
ui->setupUi(this);
|
||||
|
||||
HookWidget(ui->positionX, DSCROLL_CHANGED, SLOT(OnControlChanged()));
|
||||
HookWidget(ui->positionY, DSCROLL_CHANGED, SLOT(OnControlChanged()));
|
||||
HookWidget(ui->rotation, DSCROLL_CHANGED, SLOT(OnControlChanged()));
|
||||
|
||||
Reference in New Issue
Block a user