From 8503a2114faf72fb82b6c452f275c90f39630aeb Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Sun, 17 Jul 2016 22:57:27 +0200 Subject: [PATCH] Mainwindow: Show huge token Signed-off-by: Ralf Ramsauer --- doorlockd/client/mainwindow.cpp | 1 + doorlockd/client/mainwindow.ui | 27 ++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/doorlockd/client/mainwindow.cpp b/doorlockd/client/mainwindow.cpp index 54078ac..1e42d16 100644 --- a/doorlockd/client/mainwindow.cpp +++ b/doorlockd/client/mainwindow.cpp @@ -26,6 +26,7 @@ void MainWindow::setClientmessage(const Clientmessage &msg) { ui->qrwidget->setQRData(msg.web_address()); ui->address->setText(QString::fromStdString(msg.web_address())); + ui->token->setText(QString::fromStdString(msg.token())); QString statusMessage(""); const auto &doormsg = msg.doormessage(); diff --git a/doorlockd/client/mainwindow.ui b/doorlockd/client/mainwindow.ui index bc65454..054d8bc 100644 --- a/doorlockd/client/mainwindow.ui +++ b/doorlockd/client/mainwindow.ui @@ -85,6 +85,31 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 36 + + + + + + + @@ -102,7 +127,7 @@ - 18 + 22