Qt: Remove "What's this" button

This commit is contained in:
spycrab 2018-05-05 02:29:16 +02:00
parent 91a447394b
commit 69d6c0dccb
11 changed files with 17 additions and 0 deletions

View File

@ -42,6 +42,7 @@ constexpr int COLUMN_ROLE = Qt::UserRole + 1;
CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent) CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent)
{ {
setWindowTitle(tr("Cheats Manager")); setWindowTitle(tr("Cheats Manager"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
&CheatsManager::OnStateChanged); &CheatsManager::OnStateChanged);

View File

@ -15,6 +15,8 @@
GCPadWiiUConfigDialog::GCPadWiiUConfigDialog(int port, QWidget* parent) GCPadWiiUConfigDialog::GCPadWiiUConfigDialog(int port, QWidget* parent)
: QDialog(parent), m_port{port} : QDialog(parent), m_port{port}
{ {
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateLayout(); CreateLayout();
ConnectWidgets(); ConnectWidgets();

View File

@ -34,7 +34,9 @@ IOWindow::IOWindow(QWidget* parent, ControllerEmu::EmulatedController* controlle
{ {
CreateMainLayout(); CreateMainLayout();
ConnectWidgets(); ConnectWidgets();
setWindowTitle(type == IOWindow::Type::Input ? tr("Configure Input") : tr("Configure Output")); setWindowTitle(type == IOWindow::Type::Input ? tr("Configure Input") : tr("Configure Output"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
Update(); Update();
} }

View File

@ -20,6 +20,8 @@
NewPatchDialog::NewPatchDialog(PatchEngine::Patch& patch) : m_patch(patch) NewPatchDialog::NewPatchDialog(PatchEngine::Patch& patch) : m_patch(patch)
{ {
setWindowTitle(tr("Patch Editor")); setWindowTitle(tr("Patch Editor"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateWidgets(); CreateWidgets();
ConnectWidgets(); ConnectWidgets();

View File

@ -24,6 +24,8 @@ PropertiesDialog::PropertiesDialog(QWidget* parent, const UICommon::GameFile& ga
.arg(QString::fromStdString(game.GetFileName()), .arg(QString::fromStdString(game.GetFileName()),
QString::fromStdString(game.GetGameID()), QString::fromStdString(game.GetGameID()),
QString::fromStdString(game.GetLongName()))); QString::fromStdString(game.GetLongName())));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
QVBoxLayout* layout = new QVBoxLayout(); QVBoxLayout* layout = new QVBoxLayout();
QTabWidget* tab_widget = new QTabWidget(this); QTabWidget* tab_widget = new QTabWidget(this);

View File

@ -29,6 +29,7 @@
FIFOPlayerWindow::FIFOPlayerWindow(QWidget* parent) : QDialog(parent) FIFOPlayerWindow::FIFOPlayerWindow(QWidget* parent) : QDialog(parent)
{ {
setWindowTitle(tr("FIFO Player")); setWindowTitle(tr("FIFO Player"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateWidgets(); CreateWidgets();
ConnectWidgets(); ConnectWidgets();

View File

@ -49,6 +49,7 @@ GCMemcardManager::GCMemcardManager(QWidget* parent) : QDialog(parent)
resize(650, 500); resize(650, 500);
setWindowTitle(tr("GameCube Memory Card Manager")); setWindowTitle(tr("GameCube Memory Card Manager"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
} }
GCMemcardManager::~GCMemcardManager() = default; GCMemcardManager::~GCMemcardManager() = default;

View File

@ -31,6 +31,7 @@ MD5Dialog::MD5Dialog(QWidget* parent) : QDialog(parent)
CreateWidgets(); CreateWidgets();
ConnectWidgets(); ConnectWidgets();
setWindowTitle(tr("MD5 Checksum")); setWindowTitle(tr("MD5 Checksum"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
} }
void MD5Dialog::CreateWidgets() void MD5Dialog::CreateWidgets()

View File

@ -24,6 +24,7 @@ NetPlaySetupDialog::NetPlaySetupDialog(QWidget* parent)
: QDialog(parent), m_game_list_model(Settings::Instance().GetGameListModel()) : QDialog(parent), m_game_list_model(Settings::Instance().GetGameListModel())
{ {
setWindowTitle(tr("Dolphin NetPlay Setup")); setWindowTitle(tr("Dolphin NetPlay Setup"));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
CreateMainLayout(); CreateMainLayout();

View File

@ -17,6 +17,8 @@
GCTASInputWindow::GCTASInputWindow(QWidget* parent, int num) : QDialog(parent) GCTASInputWindow::GCTASInputWindow(QWidget* parent, int num) : QDialog(parent)
{ {
setWindowTitle(tr("GameCube TAS Input %1").arg(num + 1)); setWindowTitle(tr("GameCube TAS Input %1").arg(num + 1));
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
auto* main_stick_box = CreateStickInputs(this, tr("Main Stick"), m_x_main_stick_value, auto* main_stick_box = CreateStickInputs(this, tr("Main Stick"), m_x_main_stick_value,
m_y_main_stick_value, 255, 255, Qt::Key_F, Qt::Key_G); m_y_main_stick_value, 255, 255, Qt::Key_F, Qt::Key_G);
auto* c_stick_box = CreateStickInputs(this, tr("C Stick"), m_x_c_stick_value, m_y_c_stick_value, auto* c_stick_box = CreateStickInputs(this, tr("C Stick"), m_x_c_stick_value, m_y_c_stick_value,

View File

@ -25,6 +25,8 @@
WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : QDialog(parent), m_num(num) WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : QDialog(parent), m_num(num)
{ {
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
const QKeySequence ir_x_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_F); const QKeySequence ir_x_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_F);
const QKeySequence ir_y_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_G); const QKeySequence ir_y_shortcut_key_sequence = QKeySequence(Qt::ALT + Qt::Key_G);