mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
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
@ -648,5 +648,12 @@
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>OBSBasicTransform</receiver>
|
||||
<slot>reject()</slot>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
|
@ -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…
Reference in New Issue
Block a user