Skip to content
Permalink
Browse files

Qt/GameConfigEdit: Use QPushButton instead of QToolButton for presets…

… menu

QToolButton looks ugly on macOS, and doesn't seem appropriate for this
use case anyways.
  • Loading branch information...
Techjar committed Mar 4, 2019
1 parent 147f7ca commit d44b1b563a7453e20f0f042122fac6bbaf337998
Showing with 4 additions and 5 deletions.
  1. +4 −5 Source/Core/DolphinQt/Config/GameConfigEdit.cpp
@@ -10,11 +10,11 @@
#include <QFile>
#include <QMenu>
#include <QMenuBar>
#include <QPushButton>
#include <QScrollBar>
#include <QStringListModel>
#include <QTextCursor>
#include <QTextEdit>
#include <QToolButton>
#include <QVBoxLayout>
#include <QWhatsThis>

@@ -85,13 +85,12 @@ void GameConfigEdit::CreateWidgets()

auto* layout = new QVBoxLayout;

auto* menu_button = new QToolButton;
auto* menu_button = new QPushButton;

menu_button->setText(tr("Presets") + QStringLiteral(" "));
menu_button->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
menu_button->setText(tr("Presets"));
menu_button->setMenu(m_menu);

connect(menu_button, &QToolButton::pressed, [menu_button] { menu_button->showMenu(); });

layout->addWidget(menu_button);
layout->addWidget(m_edit);

0 comments on commit d44b1b5

Please sign in to comment.
You can’t perform that action at this time.