New upstream version 18.0.1+dfsg1
This commit is contained in:
parent
6efda2859e
commit
f2cf6cce50
1337 changed files with 41178 additions and 84670 deletions
44
UI/win-update/update-window.cpp
Normal file
44
UI/win-update/update-window.cpp
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#include "update-window.hpp"
|
||||
#include "obs-app.hpp"
|
||||
|
||||
OBSUpdate::OBSUpdate(QWidget *parent, bool manualUpdate, const QString &text)
|
||||
: QDialog (parent, Qt::WindowSystemMenuHint |
|
||||
Qt::WindowTitleHint |
|
||||
Qt::WindowCloseButtonHint),
|
||||
ui (new Ui_OBSUpdate)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->text->setHtml(text);
|
||||
|
||||
if (manualUpdate) {
|
||||
delete ui->skip;
|
||||
ui->skip = nullptr;
|
||||
|
||||
ui->no->setText(QTStr("Cancel"));
|
||||
}
|
||||
}
|
||||
|
||||
void OBSUpdate::on_yes_clicked()
|
||||
{
|
||||
done(OBSUpdate::Yes);
|
||||
}
|
||||
|
||||
void OBSUpdate::on_no_clicked()
|
||||
{
|
||||
done(OBSUpdate::No);
|
||||
}
|
||||
|
||||
void OBSUpdate::on_skip_clicked()
|
||||
{
|
||||
done(OBSUpdate::Skip);
|
||||
}
|
||||
|
||||
void OBSUpdate::accept()
|
||||
{
|
||||
done(OBSUpdate::Yes);
|
||||
}
|
||||
|
||||
void OBSUpdate::reject()
|
||||
{
|
||||
done(OBSUpdate::No);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue