1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 20:23:54 +00:00
openmw/apps/opencs/view/world/genericcreator.cpp

29 lines
No EOL
649 B
C++

#include "genericcreator.hpp"
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undoStack)
{
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()
{
}