UI: Add about dialog

This commit is contained in:
cg2121 2018-08-18 01:13:20 -05:00
commit 36b0ef5b7e
13 changed files with 455 additions and 7 deletions

View file

@ -2119,6 +2119,9 @@ OBSBasic::~OBSBasic()
if (advAudioWindow)
delete advAudioWindow;
if (about)
delete about;
obs_display_remove_draw_callback(ui->preview->GetDisplay(),
OBSBasic::RenderMain, this);
@ -6690,6 +6693,17 @@ void OBSBasic::on_stats_triggered()
stats = statsDlg;
}
void OBSBasic::on_actionShowAbout_triggered()
{
if (about)
about->close();
about = new OBSAbout(this);
about->show();
about->setAttribute(Qt::WA_DeleteOnClose, true);
}
ColorSelect::ColorSelect(QWidget *parent)
: QWidget(parent),
ui(new Ui::ColorSelect)