add of menu ui, structures and declaration of Chracter class
This commit is contained in:
@@ -6,9 +6,17 @@ MainWindow::MainWindow(QWidget *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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user