summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-03-27 16:05:23 +0200
committerGitHub <noreply@github.com>2022-03-27 16:05:23 +0200
commitb379df360a4344133625c459e28f45d7061ccc04 (patch)
tree72c56008ab3713da853463d2a74be7fc7efe3e62 /Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp
parent56b5c677c06f714282c2b9464715c68f17d98205 (diff)
parenta4d031cfda477d09c7bb8278adfb2a02edca0159 (diff)
Merge pull request #10497 from martinD2014/master
Change the highlighted button on each window
Diffstat (limited to 'Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp
index 613455ead6..37fff86807 100644
--- a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp
+++ b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp
@@ -31,6 +31,7 @@
#include "DolphinQt/Config/Mapping/MappingWindow.h"
#include "DolphinQt/QtUtils/ModalMessageBox.h"
+#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
#include "DolphinQt/Settings.h"
#include "UICommon/UICommon.h"
@@ -89,9 +90,9 @@ void WiimoteControllersWidget::CreateLayout()
m_wiimote_box->setLayout(m_wiimote_layout);
m_wiimote_passthrough = new QRadioButton(tr("Passthrough a Bluetooth adapter"));
- m_wiimote_sync = new QPushButton(tr("Sync"));
- m_wiimote_reset = new QPushButton(tr("Reset"));
- m_wiimote_refresh = new QPushButton(tr("Refresh"));
+ m_wiimote_sync = new NonDefaultQPushButton(tr("Sync"));
+ m_wiimote_reset = new NonDefaultQPushButton(tr("Reset"));
+ m_wiimote_refresh = new NonDefaultQPushButton(tr("Refresh"));
m_wiimote_pt_labels[0] = new QLabel(tr("Sync real Wii Remotes and pair them"));
m_wiimote_pt_labels[1] = new QLabel(tr("Reset all saved Wii Remote pairings"));
m_wiimote_emu = new QRadioButton(tr("Emulate the Wii's Bluetooth adapter"));
@@ -123,7 +124,7 @@ void WiimoteControllersWidget::CreateLayout()
{
auto* wm_label = m_wiimote_labels[i] = new QLabel(tr("Wii Remote %1").arg(i + 1));
auto* wm_box = m_wiimote_boxes[i] = new QComboBox();
- auto* wm_button = m_wiimote_buttons[i] = new QPushButton(tr("Configure"));
+ auto* wm_button = m_wiimote_buttons[i] = new NonDefaultQPushButton(tr("Configure"));
for (const auto& item : {tr("None"), tr("Emulated Wii Remote"), tr("Real Wii Remote")})
wm_box->addItem(item);