Merge pull request #12884 from Tilka/qt_this
DolphinQt: fix some warnings
This commit is contained in:
commit
c337ab6473
|
@ -59,8 +59,6 @@
|
||||||
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
#include "InputCommon/ControllerInterface/CoreDevice.h"
|
||||||
#include "InputCommon/InputConfig.h"
|
#include "InputCommon/InputConfig.h"
|
||||||
|
|
||||||
constexpr const char* PROFILES_DIR = "Profiles/";
|
|
||||||
|
|
||||||
MappingWindow::MappingWindow(QWidget* parent, Type type, int port_num)
|
MappingWindow::MappingWindow(QWidget* parent, Type type, int port_num)
|
||||||
: QDialog(parent), m_port(port_num)
|
: QDialog(parent), m_port(port_num)
|
||||||
{
|
{
|
||||||
|
|
|
@ -299,16 +299,14 @@ void GameList::MakeEmptyView()
|
||||||
size_policy.setRetainSizeWhenHidden(true);
|
size_policy.setRetainSizeWhenHidden(true);
|
||||||
m_empty->setSizePolicy(size_policy);
|
m_empty->setSizePolicy(size_policy);
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this,
|
connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this, [this, refreshing_msg] {
|
||||||
[this, refreshing_msg = refreshing_msg] {
|
m_empty->setText(refreshing_msg);
|
||||||
m_empty->setText(refreshing_msg);
|
m_empty->setEnabled(false);
|
||||||
m_empty->setEnabled(false);
|
});
|
||||||
});
|
connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this, [this, empty_msg] {
|
||||||
connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this,
|
m_empty->setText(empty_msg);
|
||||||
[this, empty_msg = empty_msg] {
|
m_empty->setEnabled(true);
|
||||||
m_empty->setText(empty_msg);
|
});
|
||||||
m_empty->setEnabled(true);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameList::resizeEvent(QResizeEvent* event)
|
void GameList::resizeEvent(QResizeEvent* event)
|
||||||
|
|
|
@ -354,11 +354,6 @@ void Settings::NotifyRefreshGameListComplete()
|
||||||
emit GameListRefreshCompleted();
|
emit GameListRefreshCompleted();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Settings::RefreshMetadata()
|
|
||||||
{
|
|
||||||
emit MetadataRefreshRequested();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Settings::NotifyMetadataRefreshComplete()
|
void Settings::NotifyMetadataRefreshComplete()
|
||||||
{
|
{
|
||||||
emit MetadataRefreshCompleted();
|
emit MetadataRefreshCompleted();
|
||||||
|
|
|
@ -104,7 +104,6 @@ public:
|
||||||
void RefreshGameList();
|
void RefreshGameList();
|
||||||
void NotifyRefreshGameListStarted();
|
void NotifyRefreshGameListStarted();
|
||||||
void NotifyRefreshGameListComplete();
|
void NotifyRefreshGameListComplete();
|
||||||
void RefreshMetadata();
|
|
||||||
void NotifyMetadataRefreshComplete();
|
void NotifyMetadataRefreshComplete();
|
||||||
void ReloadTitleDB();
|
void ReloadTitleDB();
|
||||||
bool IsAutoRefreshEnabled() const;
|
bool IsAutoRefreshEnabled() const;
|
||||||
|
|
|
@ -235,15 +235,15 @@ void InterfacePane::ConnectLayout()
|
||||||
connect(m_checkbox_use_builtin_title_database, &QCheckBox::toggled, &Settings::Instance(),
|
connect(m_checkbox_use_builtin_title_database, &QCheckBox::toggled, &Settings::Instance(),
|
||||||
&Settings::GameListRefreshRequested);
|
&Settings::GameListRefreshRequested);
|
||||||
connect(m_checkbox_use_covers, &QCheckBox::toggled, &Settings::Instance(),
|
connect(m_checkbox_use_covers, &QCheckBox::toggled, &Settings::Instance(),
|
||||||
&Settings::RefreshMetadata);
|
&Settings::MetadataRefreshRequested);
|
||||||
connect(m_checkbox_show_debugging_ui, &QCheckBox::toggled, &Settings::Instance(),
|
connect(m_checkbox_show_debugging_ui, &QCheckBox::toggled, &Settings::Instance(),
|
||||||
&Settings::SetDebugModeEnabled);
|
&Settings::SetDebugModeEnabled);
|
||||||
connect(m_combobox_theme, &QComboBox::currentIndexChanged, this,
|
connect(m_combobox_theme, &QComboBox::currentIndexChanged, &Settings::Instance(),
|
||||||
[this](int index) { Settings::Instance().TriggerThemeChanged(); });
|
&Settings::ThemeChanged);
|
||||||
connect(m_combobox_userstyle, &QComboBox::currentIndexChanged, this,
|
connect(m_combobox_userstyle, &QComboBox::currentIndexChanged, this,
|
||||||
&InterfacePane::OnUserStyleChanged);
|
&InterfacePane::OnUserStyleChanged);
|
||||||
connect(m_combobox_language, &QComboBox::currentIndexChanged, this,
|
connect(m_combobox_language, &QComboBox::currentIndexChanged, this,
|
||||||
[this]() { OnLanguageChanged(); });
|
&InterfacePane::OnLanguageChanged);
|
||||||
connect(m_checkbox_top_window, &QCheckBox::toggled, &Settings::Instance(),
|
connect(m_checkbox_top_window, &QCheckBox::toggled, &Settings::Instance(),
|
||||||
&Settings::KeepWindowOnTopChanged);
|
&Settings::KeepWindowOnTopChanged);
|
||||||
connect(m_radio_cursor_visible_movement, &ConfigRadioInt::OnSelected, &Settings::Instance(),
|
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(),
|
connect(m_radio_cursor_visible_always, &ConfigRadioInt::OnSelected, &Settings::Instance(),
|
||||||
&Settings::CursorVisibilityChanged);
|
&Settings::CursorVisibilityChanged);
|
||||||
connect(m_checkbox_lock_mouse, &QCheckBox::toggled, &Settings::Instance(),
|
connect(m_checkbox_lock_mouse, &QCheckBox::toggled, &Settings::Instance(),
|
||||||
[this]() { Settings::Instance().LockCursorChanged(); });
|
&Settings::LockCursorChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InterfacePane::UpdateShowDebuggingCheckbox()
|
void InterfacePane::UpdateShowDebuggingCheckbox()
|
||||||
|
|
Loading…
Reference in New Issue