mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Qt/WiimoteControllersWidget: Add bluetooth unavailable message
This commit is contained in:
parent
88fc431dce
commit
d18735e82e
6 changed files with 28 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue