UI: Use QDialog for all dialogs
While QWidgets can be opened as dialogs, they don't contain certain functions/defaults that are expected in a dialog.
This commit is contained in:
parent
9a5e094cb3
commit
9613fe7d47
4 changed files with 11 additions and 7 deletions
|
|
@ -85,7 +85,7 @@ static OBSPlainTextEdit *scriptLogWidget = nullptr;
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
ScriptLogWindow::ScriptLogWindow() : QWidget(nullptr)
|
||||
ScriptLogWindow::ScriptLogWindow() : QDialog(nullptr)
|
||||
{
|
||||
OBSPlainTextEdit *edit = new OBSPlainTextEdit();
|
||||
edit->setReadOnly(true);
|
||||
|
|
@ -109,6 +109,8 @@ ScriptLogWindow::ScriptLogWindow() : QWidget(nullptr)
|
|||
setLayout(layout);
|
||||
scriptLogWidget = edit;
|
||||
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
resize(600, 400);
|
||||
|
||||
config_t *global_config = obs_frontend_get_global_config();
|
||||
|
|
@ -179,8 +181,10 @@ void ScriptLogWindow::Clear()
|
|||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
ScriptsTool::ScriptsTool() : QWidget(nullptr), ui(new Ui_ScriptsTool)
|
||||
ScriptsTool::ScriptsTool() : QDialog(nullptr), ui(new Ui_ScriptsTool)
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
ui->setupUi(this);
|
||||
RefreshLists();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue