summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-06-23 15:08:13 +0200
committerGitHub <noreply@github.com>2024-06-23 15:08:13 +0200
commitc337ab6473dfd6828fac83b49c1dc374af882cd4 (patch)
tree417a5ff86a97a7dc65cac1e5ce8f409e186fb4f1 /Source
parenta75c65bde21c85f46a3dec2afb83d27db0d7e1a1 (diff)
parent8e7d11d1a1c421b9c89105a33a71924c7d619ff9 (diff)
Merge pull request #12884 from Tilka/qt_this
DolphinQt: fix some warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp2
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp18
-rw-r--r--Source/Core/DolphinQt/Settings.cpp5
-rw-r--r--Source/Core/DolphinQt/Settings.h1
-rw-r--r--Source/Core/DolphinQt/Settings/InterfacePane.cpp10
5 files changed, 13 insertions, 23 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
index 6c815e4a15..ad7305ac15 100644
--- a/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
+++ b/Source/Core/DolphinQt/Config/Mapping/MappingWindow.cpp
@@ -59,8 +59,6 @@
#include "InputCommon/ControllerInterface/CoreDevice.h"
#include "InputCommon/InputConfig.h"
-constexpr const char* PROFILES_DIR = "Profiles/";
-
MappingWindow::MappingWindow(QWidget* parent, Type type, int port_num)
: QDialog(parent), m_port(port_num)
{
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp
index 05ca541ef3..5545a622b3 100644
--- a/Source/Core/DolphinQt/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt/GameList/GameList.cpp
@@ -299,16 +299,14 @@ void GameList::MakeEmptyView()
size_policy.setRetainSizeWhenHidden(true);
m_empty->setSizePolicy(size_policy);
- connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this,
- [this, refreshing_msg = refreshing_msg] {
- m_empty->setText(refreshing_msg);
- m_empty->setEnabled(false);
- });
- connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this,
- [this, empty_msg = empty_msg] {
- m_empty->setText(empty_msg);
- m_empty->setEnabled(true);
- });
+ connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this, [this, refreshing_msg] {
+ m_empty->setText(refreshing_msg);
+ m_empty->setEnabled(false);
+ });
+ connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this, [this, empty_msg] {
+ m_empty->setText(empty_msg);
+ m_empty->setEnabled(true);
+ });
}
void GameList::resizeEvent(QResizeEvent* event)
diff --git a/Source/Core/DolphinQt/Settings.cpp b/Source/Core/DolphinQt/Settings.cpp
index 9cc1a1a5ab..4ab29c3e0f 100644
--- a/Source/Core/DolphinQt/Settings.cpp
+++ b/Source/Core/DolphinQt/Settings.cpp
@@ -354,11 +354,6 @@ void Settings::NotifyRefreshGameListComplete()
emit GameListRefreshCompleted();
}
-void Settings::RefreshMetadata()
-{
- emit MetadataRefreshRequested();
-}
-
void Settings::NotifyMetadataRefreshComplete()
{
emit MetadataRefreshCompleted();
diff --git a/Source/Core/DolphinQt/Settings.h b/Source/Core/DolphinQt/Settings.h
index 479d723e59..a99e8c7dca 100644
--- a/Source/Core/DolphinQt/Settings.h
+++ b/Source/Core/DolphinQt/Settings.h
@@ -104,7 +104,6 @@ public:
void RefreshGameList();
void NotifyRefreshGameListStarted();
void NotifyRefreshGameListComplete();
- void RefreshMetadata();
void NotifyMetadataRefreshComplete();
void ReloadTitleDB();
bool IsAutoRefreshEnabled() const;
diff --git a/Source/Core/DolphinQt/Settings/InterfacePane.cpp b/Source/Core/DolphinQt/Settings/InterfacePane.cpp
index c375214bd3..42f186abee 100644
--- a/Source/Core/DolphinQt/Settings/InterfacePane.cpp
+++ b/Source/Core/DolphinQt/Settings/InterfacePane.cpp
@@ -235,15 +235,15 @@ void InterfacePane::ConnectLayout()
connect(m_checkbox_use_builtin_title_database, &QCheckBox::toggled, &Settings::Instance(),
&Settings::GameListRefreshRequested);
connect(m_checkbox_use_covers, &QCheckBox::toggled, &Settings::Instance(),
- &Settings::RefreshMetadata);
+ &Settings::MetadataRefreshRequested);
connect(m_checkbox_show_debugging_ui, &QCheckBox::toggled, &Settings::Instance(),
&Settings::SetDebugModeEnabled);
- connect(m_combobox_theme, &QComboBox::currentIndexChanged, this,
- [this](int index) { Settings::Instance().TriggerThemeChanged(); });
+ connect(m_combobox_theme, &QComboBox::currentIndexChanged, &Settings::Instance(),
+ &Settings::ThemeChanged);
connect(m_combobox_userstyle, &QComboBox::currentIndexChanged, this,
&InterfacePane::OnUserStyleChanged);
connect(m_combobox_language, &QComboBox::currentIndexChanged, this,
- [this]() { OnLanguageChanged(); });
+ &InterfacePane::OnLanguageChanged);
connect(m_checkbox_top_window, &QCheckBox::toggled, &Settings::Instance(),
&Settings::KeepWindowOnTopChanged);
connect(m_radio_cursor_visible_movement, &ConfigRadioInt::OnSelected, &Settings::Instance(),
@@ -253,7 +253,7 @@ void InterfacePane::ConnectLayout()
connect(m_radio_cursor_visible_always, &ConfigRadioInt::OnSelected, &Settings::Instance(),
&Settings::CursorVisibilityChanged);
connect(m_checkbox_lock_mouse, &QCheckBox::toggled, &Settings::Instance(),
- [this]() { Settings::Instance().LockCursorChanged(); });
+ &Settings::LockCursorChanged);
}
void InterfacePane::UpdateShowDebuggingCheckbox()