summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
diff options
context:
space:
mode:
authorMartin <M.Dierikx@student.tudelft.nl>2022-03-08 08:51:29 +0100
committerMartin <M.Dierikx@student.tudelft.nl>2022-03-08 08:51:29 +0100
commita4d031cfda477d09c7bb8278adfb2a02edca0159 (patch)
tree5937002abdc1e4ddcf188e463b337d8f068b6e01 /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
parent9af9e791f6a19d62197ad0d2e0fc39ed744cd506 (diff)
Add NonDefaultQPushButton to set autoDefault of buttons to false
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
index 87783379b7..d3fc411498 100644
--- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
+++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
@@ -26,6 +26,7 @@
#include "DolphinQt/Config/CheatCodeEditor.h"
#include "DolphinQt/Config/CheatWarningWidget.h"
#include "DolphinQt/QtUtils/ModalMessageBox.h"
+#include "DolphinQt/QtUtils/NonDefaultQPushButton.h"
#include "UICommon/GameFile.h"
@@ -77,10 +78,10 @@ void GeckoCodeWidget::CreateWidgets()
m_code_view->setReadOnly(true);
m_code_view->setFixedHeight(line_height * 10);
- m_add_code = new QPushButton(tr("&Add New Code..."));
- m_edit_code = new QPushButton(tr("&Edit Code..."));
- m_remove_code = new QPushButton(tr("&Remove Code"));
- m_download_codes = new QPushButton(tr("Download Codes"));
+ m_add_code = new NonDefaultQPushButton(tr("&Add New Code..."));
+ m_edit_code = new NonDefaultQPushButton(tr("&Edit Code..."));
+ m_remove_code = new NonDefaultQPushButton(tr("&Remove Code"));
+ m_download_codes = new NonDefaultQPushButton(tr("Download Codes"));
m_download_codes->setToolTip(tr("Download Codes from the WiiRD Database"));