mirror of https://github.com/OpenMW/openmw.git
added creator bar UI and cancel button
parent
b8ac45defe
commit
fee748d4b5
@ -1,2 +1,29 @@
|
||||
|
||||
#include "genericcreator.hpp"
|
||||
#include "genericcreator.hpp"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QLineEdit>
|
||||
|
||||
CSVWorld::GenericCreator::GenericCreator()
|
||||
{
|
||||
QHBoxLayout *layout = new QHBoxLayout;
|
||||
|
||||
QLineEdit *name = new QLineEdit;
|
||||
layout->addWidget (name, 1);
|
||||
|
||||
QPushButton *createButton = new QPushButton ("Create");
|
||||
layout->addWidget (createButton);
|
||||
|
||||
QPushButton *cancelButton = new QPushButton ("Cancel");
|
||||
layout->addWidget (cancelButton);
|
||||
|
||||
connect (cancelButton, SIGNAL (clicked (bool)), this, SIGNAL (done()));
|
||||
|
||||
setLayout (layout);
|
||||
}
|
||||
|
||||
void CSVWorld::GenericCreator::reset()
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue