Simple widgets UI to demonstrate usage of GenericCore library.
This commit is contained in:
19
mainwindow.cpp
Normal file
19
mainwindow.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include "mainwindow.h"
|
||||
#include "./ui_mainwindow.h"
|
||||
|
||||
#include "../../libs/GenericCore/genericcore.h"
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::MainWindow) {
|
||||
ui->setupUi(this);
|
||||
|
||||
m_core = std::make_shared<GenericCore>();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() { delete ui; }
|
||||
|
||||
void MainWindow::on_pushButton_clicked() {
|
||||
const QString prefix("Backend provided by: ");
|
||||
ui->label->setText(prefix + m_core->toString());
|
||||
}
|
||||
Reference in New Issue
Block a user