mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Merge pull request #7854 from Techjar/ini-editor-menus
Qt/GameConfigEdit: Use QPushButton instead of QToolButton for presets menu
This commit is contained in:
commit
86fd8e25f7
@ -10,11 +10,11 @@
|
|||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
|
#include <QPushButton>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
#include <QTextCursor>
|
#include <QTextCursor>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QToolButton>
|
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QWhatsThis>
|
#include <QWhatsThis>
|
||||||
|
|
||||||
@ -85,13 +85,12 @@ void GameConfigEdit::CreateWidgets()
|
|||||||
|
|
||||||
auto* layout = new QVBoxLayout;
|
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);
|
menu_button->setMenu(m_menu);
|
||||||
|
|
||||||
connect(menu_button, &QToolButton::pressed, [menu_button] { menu_button->showMenu(); });
|
|
||||||
|
|
||||||
layout->addWidget(menu_button);
|
layout->addWidget(menu_button);
|
||||||
layout->addWidget(m_edit);
|
layout->addWidget(m_edit);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user