1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-10-02 18:52:27 +02:00
doorlockd-mirror/doorlockd/client/mainwindow.cpp

21 lines
388 B
C++
Raw Normal View History

2015-09-30 15:26:28 +02:00
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
2015-10-02 19:39:47 +02:00
void MainWindow::setClientmessage(const Clientmessage &msg)
2015-09-30 15:26:28 +02:00
{
2015-10-02 19:39:47 +02:00
ui->qrwidget->setQRData(msg.token());
ui->tokenLabel->setText(QString::fromStdString(msg.token()));
2015-09-30 15:26:28 +02:00
}