1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-08 01:13:54 +01: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
}