diff --git a/plugins/appwizard/appwizarddialog.cpp b/plugins/appwizard/appwizarddialog.cpp --- a/plugins/appwizard/appwizarddialog.cpp +++ b/plugins/appwizard/appwizarddialog.cpp @@ -11,6 +11,7 @@ #include #include +#include #include @@ -25,7 +26,13 @@ :KAssistantDialog(parent, flags) { setWindowTitle(i18n("Create New Project")); -// KDialog::showButton(Help, false); + + // KAssistantDialog creates a help button by default, no option to prevent that + QPushButton *helpButton = button(QDialogButtonBox::Help); + if (helpButton) { + buttonBox()->removeButton(helpButton); + delete helpButton; + } m_selectionPage = new ProjectSelectionPage(templatesModel, this); m_vcsPage = new ProjectVcsPage( pluginController, this ); diff --git a/plugins/filetemplates/templateclassassistant.cpp b/plugins/filetemplates/templateclassassistant.cpp --- a/plugins/filetemplates/templateclassassistant.cpp +++ b/plugins/filetemplates/templateclassassistant.cpp @@ -307,7 +307,13 @@ d->templateSelectionPage->setIcon(QIcon::fromTheme(QStringLiteral("project-development-new-template"))); d->dummyPage = addPage(new QWidget(this), QStringLiteral("Dummy Page")); -// showButton(QDialog::Help, false); + + // KAssistantDialog creates a help button by default, no option to prevent that + QPushButton *helpButton = button(QDialogButtonBox::Help); + if (helpButton) { + buttonBox()->removeButton(helpButton); + delete helpButton; + } } void TemplateClassAssistant::templateChosen(const QString& templateDescription) diff --git a/shell/openprojectdialog.cpp b/shell/openprojectdialog.cpp --- a/shell/openprojectdialog.cpp +++ b/shell/openprojectdialog.cpp @@ -12,6 +12,7 @@ #include "openprojectpage.h" #include "projectinfopage.h" +#include #include #include #include @@ -76,6 +77,13 @@ { resize(QSize(700, 500)); + // KAssistantDialog creates a help button by default, no option to prevent that + auto helpButton = button(QDialogButtonBox::Help); + if (helpButton) { + buttonBox()->removeButton(helpButton); + delete helpButton; + } + const bool useKdeFileDialog = qEnvironmentVariableIsSet("KDE_FULL_SESSION"); QStringList filters, allEntry; QString filterFormat = useKdeFileDialog