Merge pull request #5728 from Starsam80/remove-qt-whats-this

Qt: Don't show the Qt "What's this" button
This commit is contained in:
Leo Lam 2017-07-08 10:55:28 +02:00 committed by GitHub
commit d0fb1bc4bf
5 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent)
{
setWindowTitle(tr("About Dolphin"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
setAttribute(Qt::WA_DeleteOnClose);
QString text = QStringLiteral("");

View File

@ -69,6 +69,7 @@ static int FromWiimoteMenuIndex(const int menudevice)
ControllersWindow::ControllersWindow(QWidget* parent) : QDialog(parent)
{
setWindowTitle(tr("Controller Settings"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateGamecubeLayout();
CreateWiimoteLayout();

View File

@ -39,6 +39,7 @@
MappingWindow::MappingWindow(QWidget* parent, int port_num) : QDialog(parent), m_port(port_num)
{
setWindowTitle(tr("Port %1").arg(port_num + 1));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateDevicesLayout();
CreateProfilesLayout();

View File

@ -23,6 +23,7 @@ SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
{
// Set Window Properties
setWindowTitle(tr("Settings"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
resize(720, 600);
// Main Layout

View File

@ -43,6 +43,7 @@ void PerformOnlineUpdate(const std::string& region, QWidget* parent)
UpdateProgressDialog dialog{parent};
dialog.setLabelText(QObject::tr("Preparing to update...\nThis can take a while."));
dialog.setWindowTitle(QObject::tr("Updating"));
dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
// QProgressDialog doesn't set its minimum size correctly.
dialog.setMinimumSize(360, 150);