23 lines
399 B
C++
23 lines
399 B
C++
#include "mainwindow.h"
|
|
#include "ui_mainwindow.h"
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
: QMainWindow(parent)
|
|
, ui(new Ui::MainWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
Character* c = new Character();
|
|
currentCharacter = c;
|
|
characters.append(c);
|
|
}
|
|
|
|
MainWindow::~MainWindow()
|
|
{
|
|
delete ui;
|
|
delete currentCharacter;
|
|
|
|
for(Character* c : characters) {
|
|
delete c;
|
|
}
|
|
}
|