UI: Make sure all dialogs have close buttons

This adds close buttons to remux dialog, output timer dialog, and
advanced audio properties dialog.  I also did a small refactor of the
remux dialog so the buttons were consistent with other dialogs.

Closes jp9000/obs-studio#876
This commit is contained in:
cg2121
2017-04-09 08:11:35 -05:00
committed by jp9000
parent 0ea0b99aa0
commit e26f07a1c3
6 changed files with 59 additions and 62 deletions

View File

@@ -201,6 +201,13 @@
</property>
</widget>
</item>
<item row="6" column="8">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources />

View File

@@ -22,6 +22,8 @@ OutputTimer::OutputTimer(QWidget *parent)
SLOT(StreamingTimerButton()));
QObject::connect(ui->outputTimerRecord, SIGNAL(clicked()), this,
SLOT(RecordingTimerButton()));
QObject::connect(ui->buttonBox->button(QDialogButtonBox::Close),
SIGNAL(clicked()), this, SLOT(hide()));
streamingTimer = new QTimer(this);
streamingTimerDisplay = new QTimer(this);