now with pairing button and dialog

This commit is contained in:
R. Aidan Campbell
2018-04-28 18:18:43 -07:00
parent 4d0341fd9a
commit 073d965f6d
3 changed files with 500 additions and 4 deletions

View File

@@ -41,3 +41,20 @@ void MainWindow::on_actionExit_triggered()
{
exit(EXIT_SUCCESS);
}
void MainWindow::on_newHostBtn_clicked()
{
bool ok;
QString responseHost
= QInputDialog::getText(this, tr("Add Host Manually"),
tr("IP Address or Hostname of GeForce PC"),
QLineEdit::Normal,
tr("default string"),
&ok);
if (ok && !responseHost.isEmpty()) {
// TODO: send pair request to "responseHost"
} else {
// silently close, user canceled
}
}