Răsfoiți Sursa

UI: Remove additional unused help icons

Richard Stanway 6 ani în urmă
părinte
comite
43fbefb9ef

+ 2 - 0
UI/window-basic-about.cpp

@@ -14,6 +14,8 @@ OBSAbout::OBSAbout(QWidget *parent)
 
 	setFixedSize(size());
 
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+
 	QString bitness;
 
 	if(sizeof(void*) == 4)

+ 1 - 0
UI/window-basic-adv-audio.cpp

@@ -89,6 +89,7 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent)
 
 	resize(1000, 340);
 	setWindowTitle(QTStr("Basic.AdvAudio"));
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
 	setSizeGripEnabled(true);
 	setWindowModality(Qt::NonModal);
 	setAttribute(Qt::WA_DeleteOnClose, true);

+ 1 - 0
UI/window-basic-auto-config.cpp

@@ -732,6 +732,7 @@ AutoConfig::AutoConfig(QWidget *parent)
 	setPage(StreamPage, streamPage);
 	setPage(TestPage, new AutoConfigTestPage());
 	setWindowTitle(QTStr("Basic.AutoConfig"));
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
 
 	obs_video_info ovi;
 	obs_get_video_info(&ovi);

+ 1 - 0
UI/window-basic-filters.cpp

@@ -71,6 +71,7 @@ OBSBasicFilters::OBSBasicFilters(QWidget *parent, OBSSource source_)
 
 	const char *name = obs_source_get_name(source);
 	setWindowTitle(QTStr("Basic.Filters.Title").arg(QT_UTF8(name)));
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
 
 #ifndef QT_NO_SHORTCUT
 	ui->actionRemoveFilter->setShortcut(QApplication::translate("OBSBasicFilters", "Del", nullptr));

+ 2 - 0
UI/window-basic-properties.cpp

@@ -64,6 +64,8 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_)
 	else
 		resize(720, 580);
 
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+
 	QMetaObject::connectSlotsByName(this);
 
 	/* The OBSData constructor increments the reference once */

+ 2 - 0
UI/window-basic-settings.cpp

@@ -282,6 +282,8 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
 
 	ui->setupUi(this);
 
+	setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
+
 	main->EnableOutputs(false);
 
 	PopulateAACBitrates({ui->simpleOutputABitrate,

+ 1 - 0
UI/window-namedialog.cpp

@@ -45,6 +45,7 @@ bool NameDialog::AskForName(QWidget *parent, const QString &title,
 
 	NameDialog dialog(parent);
 	dialog.setWindowTitle(title);
+	dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
 	dialog.ui->label->setText(text);
 	dialog.ui->userText->setMaxLength(maxSize);
 	dialog.ui->userText->setText(placeHolder);