diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-02-22 20:10:23 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2023-02-24 14:30:43 -0800 |
| commit | d18735e82ea3372d407bb313b0af65692ca5ad05 (patch) | |
| tree | 095a42a7bf12055feb8b0b21ce23eb76f070e9f0 /Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp | |
| parent | 88fc431dce1d422cc02215d62e544b67476504ad (diff) | |
Qt/WiimoteControllersWidget: Add bluetooth unavailable message
Diffstat (limited to 'Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp index 21b0fc1b33..28f15a46d7 100644 --- a/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp +++ b/Source/Core/DolphinQt/Config/WiimoteControllersWidget.cpp @@ -50,6 +50,11 @@ WiimoteControllersWidget::WiimoteControllersWidget(QWidget* parent) : QWidget(pa LoadSettings(Core::GetState()); } +void WiimoteControllersWidget::UpdateBluetoothAvailableStatus() +{ + m_bluetooth_unavailable->setHidden(WiimoteReal::IsScannerReady()); +} + static int GetRadioButtonIndicatorWidth() { const QStyle* style = QApplication::style(); @@ -151,6 +156,10 @@ void WiimoteControllersWidget::CreateLayout() m_wiimote_layout->addWidget(m_wiimote_continuous_scanning, continuous_scanning_row, 0, 1, 3); m_wiimote_layout->addWidget(m_wiimote_refresh, continuous_scanning_row, 3); + m_bluetooth_unavailable = new QLabel(tr("A supported Bluetooth device could not be found.\n" + "You must manually connect your Wii Remote.")); + m_wiimote_layout->addWidget(m_bluetooth_unavailable, m_wiimote_layout->rowCount(), 1, 1, -1); + auto* layout = new QVBoxLayout; layout->setContentsMargins(0, 0, 0, 0); layout->setAlignment(Qt::AlignTop); |
