UI: Make close button default in transform dialog
Improves ease of use. Closes jp9000/obs-studio#731
This commit is contained in:
parent
0ff4feab02
commit
ee019c7761
2 changed files with 10 additions and 3 deletions
|
|
@ -56,10 +56,10 @@ OBSBasicTransform::OBSBasicTransform(OBSBasic *parent)
|
|||
HookWidget(ui->cropTop, ISCROLL_CHANGED, SLOT(OnCropChanged()));
|
||||
HookWidget(ui->cropBottom, ISCROLL_CHANGED, SLOT(OnCropChanged()));
|
||||
|
||||
ui->buttonBox->button(QDialogButtonBox::Close)->setDefault(true);
|
||||
|
||||
connect(ui->buttonBox->button(QDialogButtonBox::Reset),
|
||||
SIGNAL(clicked()), this, SLOT(on_resetButton_clicked()));
|
||||
connect(ui->buttonBox,
|
||||
SIGNAL(rejected()), this, SLOT(close()));
|
||||
|
||||
installEventFilter(CreateShortcutFilter());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue