1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-11-09 17:46:18 +01:00
doorlockd-mirror/doorlockd/client/mainwindow.h
Ralf Ramsauer 60ed23486b Improved directory structure
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
2015-09-29 14:33:53 +02:00

45 lines
775 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QApplication>
#include <QMainWindow>
#include <QStatusBar>
#include <QHBoxLayout>
#include "qrwidget.h"
class MainWindow : public QMainWindow
{
public:
MainWindow() :
QMainWindow()
{
_qrWidget = new QRWidget;
statusBar()->showMessage(tr("Boofar"));
QHBoxLayout *layout = new QHBoxLayout;
layout->addWidget(_qrWidget);
QWidget* window = new QWidget;
window->setLayout(layout);
setCentralWidget(window);
}
MainWindow(const MainWindow&);
MainWindow& operator =(const MainWindow&);
void setQRCode(const std::string &str)
{
_qrWidget->setQRData(str);
}
private:
QRWidget* _qrWidget = { nullptr };
};
#endif