|
|
|
@ -40,6 +40,10 @@ void CSVWorld::GenericCreator::insertAtBeginning (QWidget *widget, bool stretche
|
|
|
|
|
void CSVWorld::GenericCreator::insertBeforeButtons (QWidget *widget, bool stretched)
|
|
|
|
|
{
|
|
|
|
|
mLayout->insertWidget (mLayout->count()-2, widget, stretched ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
// Reset tab order relative to buttons.
|
|
|
|
|
setTabOrder(widget, mCreate);
|
|
|
|
|
setTabOrder(mCreate, mCancel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string CSVWorld::GenericCreator::getId() const
|
|
|
|
@ -161,12 +165,12 @@ CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undo
|
|
|
|
|
mCreate = new QPushButton ("Create");
|
|
|
|
|
mLayout->addWidget (mCreate);
|
|
|
|
|
|
|
|
|
|
QPushButton *cancelButton = new QPushButton ("Cancel");
|
|
|
|
|
mLayout->addWidget (cancelButton);
|
|
|
|
|
mCancel = new QPushButton("Cancel");
|
|
|
|
|
mLayout->addWidget(mCancel);
|
|
|
|
|
|
|
|
|
|
setLayout (mLayout);
|
|
|
|
|
|
|
|
|
|
connect (cancelButton, SIGNAL (clicked (bool)), this, SIGNAL (done()));
|
|
|
|
|
connect (mCancel, SIGNAL (clicked (bool)), this, SIGNAL (done()));
|
|
|
|
|
connect (mCreate, SIGNAL (clicked (bool)), this, SLOT (create()));
|
|
|
|
|
|
|
|
|
|
connect (mId, SIGNAL (textChanged (const QString&)), this, SLOT (textChanged (const QString&)));
|
|
|
|
|