mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-16 05:51:41 +00:00
DolphinQt: Move "Controllers" to main settings window.
This commit is contained in:
parent
8665b22822
commit
b9bea58f0f
10 changed files with 82 additions and 112 deletions
35
Source/Core/DolphinQt/Config/ControllersPane.cpp
Normal file
35
Source/Core/DolphinQt/Config/ControllersPane.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2025 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "DolphinQt/Config/ControllersPane.h"
|
||||
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "DolphinQt/Config/CommonControllersWidget.h"
|
||||
#include "DolphinQt/Config/GamecubeControllersWidget.h"
|
||||
#include "DolphinQt/Config/WiimoteControllersWidget.h"
|
||||
|
||||
ControllersPane::ControllersPane()
|
||||
{
|
||||
CreateMainLayout();
|
||||
}
|
||||
|
||||
void ControllersPane::showEvent(QShowEvent* event)
|
||||
{
|
||||
QWidget::showEvent(event);
|
||||
|
||||
m_wiimote_controllers->UpdateBluetoothAvailableStatus();
|
||||
}
|
||||
|
||||
void ControllersPane::CreateMainLayout()
|
||||
{
|
||||
auto* const layout = new QVBoxLayout{this};
|
||||
|
||||
auto* const gamecube_controllers = new GamecubeControllersWidget(this);
|
||||
m_wiimote_controllers = new WiimoteControllersWidget(this);
|
||||
auto* const common = new CommonControllersWidget(this);
|
||||
|
||||
layout->addWidget(gamecube_controllers);
|
||||
layout->addWidget(m_wiimote_controllers);
|
||||
layout->addWidget(common);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue