mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: Move "Controllers" to main settings window.
This commit is contained in:
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);
|
||||
}
|
Reference in New Issue
Block a user