Merge pull request #2179 from WizardCM/remove-help-interact

UI: Remove help icon from Interact titlebars
This commit is contained in:
Jim
2019-11-16 00:22:03 -08:00
committed by jp9000
parent 3136f69ef1
commit d920bfcdbb

View File

@@ -59,6 +59,10 @@ OBSBasicInteraction::OBSBasicInteraction(QWidget *parent, OBSSource source_)
const char *name = obs_source_get_name(source);
setWindowTitle(QTStr("Basic.InteractionWindow").arg(QT_UTF8(name)));
Qt::WindowFlags flags = windowFlags();
Qt::WindowFlags helpFlag = Qt::WindowContextHelpButtonHint;
setWindowFlags(flags & (~helpFlag));
auto addDrawCallback = [this]() {
obs_display_add_draw_callback(ui->preview->GetDisplay(),
OBSBasicInteraction::DrawPreview,