mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
now with pairing button and dialog
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user