now with a dropdown to select a host, and associated filling logic

This commit is contained in:
R. Aidan Campbell
2018-04-29 07:55:31 -07:00
parent 23b3fb5af0
commit 0651062b81
3 changed files with 22 additions and 431 deletions

View File

@@ -7,6 +7,7 @@ MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
myButton = new QPushButton(this);
myButton->setIcon(QIcon(":/res/icon128.png"));
myButton->setIconSize(QSize(128, 128));
@@ -76,3 +77,20 @@ void MainWindow::displayPinDialog(QString pin = tr("ERROR")) {
void MainWindow::closePinDialog() {
pinMsgBox->close();
}
void MainWindow::addHostToDisplay(QMap<QString, bool> hostMdnsMap) {
QMapIterator<QString, bool> i(hostMdnsMap);
while (i.hasNext()) {
i.next();
ui->hostSelectCombo->addItem(i.key());
// we can ignore the mdns for now, it's only useful for displaying unpairing options
}
}
void MainWindow::on_selectHostComboBox_activated(const QString &selectedHostname)
{
// TODO: get all the applications that "selectedHostname" has listed
// probably populate another combobox of applications for the time being
}