Commit 0fd34f04 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Wizard] Allow choosing device by double click

Instead of having to select one and clicking "Next"

Differential Revision:
parent 6f27fd50
......@@ -118,6 +118,7 @@ DiscoverPage::DiscoverPage(BlueWizard *parent)
connect(deviceView->selectionModel(), &QItemSelectionModel::currentChanged, this, &DiscoverPage::indexSelected);
connect(deviceView, &QListView::doubleClicked, this, &DiscoverPage::itemDoubleClicked);
void DiscoverPage::initializePage()
......@@ -230,6 +231,12 @@ void DiscoverPage::indexSelected(const QModelIndex &index)
Q_EMIT completeChanged();
void DiscoverPage::itemDoubleClicked(const QModelIndex &index)
void DiscoverPage::usableAdapterChanged(BluezQt::AdapterPtr adapter)
m_adapter = adapter;
......@@ -42,6 +42,7 @@ public:
private Q_SLOTS:
void indexSelected(const QModelIndex &index);
void itemDoubleClicked(const QModelIndex &index);
void usableAdapterChanged(BluezQt::AdapterPtr adapter);
void checkAdapters();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment