summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Mapping/MappingWindow.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/Mapping/MappingWindow.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/Mapping/MappingWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
index 8049658d4e..60f645d124 100644
--- a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
+++ b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
@@ -45,6 +45,7 @@
#include "DolphinQt/Config/Mapping/WiimoteEmuMotionControl.h"
#include "DolphinQt/Config/Mapping/WiimoteEmuMotionControlIMU.h"
#include "DolphinQt/QtUtils/ModalMessageBox.h"
+#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
#include "DolphinQt/QtUtils/WindowActivationEventFilter.h"
#include "DolphinQt/QtUtils/WrapInScrollArea.h"
#include "DolphinQt/Settings.h"
@@ -94,7 +95,7 @@ void MappingWindow::CreateDevicesLayout()
m_devices_layout = new QHBoxLayout();
m_devices_box = new QGroupBox(tr("Device"));
m_devices_combo = new QComboBox();
- m_devices_refresh = new QPushButton(tr("Refresh"));
+ m_devices_refresh = new NonDefaultQPushButton(tr("Refresh"));
m_devices_combo->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
m_devices_refresh->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
@@ -110,9 +111,9 @@ void MappingWindow::CreateProfilesLayout()
m_profiles_layout = new QHBoxLayout();
m_profiles_box = new QGroupBox(tr("Profile"));
m_profiles_combo = new QComboBox();
- m_profiles_load = new QPushButton(tr("Load"));
- m_profiles_save = new QPushButton(tr("Save"));
- m_profiles_delete = new QPushButton(tr("Delete"));
+ m_profiles_load = new NonDefaultQPushButton(tr("Load"));
+ m_profiles_save = new NonDefaultQPushButton(tr("Save"));
+ m_profiles_delete = new NonDefaultQPushButton(tr("Delete"));
auto* button_layout = new QHBoxLayout();
@@ -133,8 +134,8 @@ void MappingWindow::CreateResetLayout()
{
m_reset_layout = new QHBoxLayout();
m_reset_box = new QGroupBox(tr("Reset"));
- m_reset_clear = new QPushButton(tr("Clear"));
- m_reset_default = new QPushButton(tr("Default"));
+ m_reset_clear = new NonDefaultQPushButton(tr("Clear"));
+ m_reset_default = new NonDefaultQPushButton(tr("Default"));
m_reset_box->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);