forked from mirror/openmw-tes3mp
Disable widgets in the cell creator.
This commit is contained in:
parent
c87d9ff38d
commit
f390c7f4b0
2 changed files with 9 additions and 1 deletions
|
@ -78,4 +78,10 @@ void CSVWorld::CellCreator::setType (int index)
|
||||||
void CSVWorld::CellCreator::valueChanged (int index)
|
void CSVWorld::CellCreator::valueChanged (int index)
|
||||||
{
|
{
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVWorld::CellCreator::toggleWidgets(bool active)
|
||||||
|
{
|
||||||
|
CSVWorld::GenericCreator::toggleWidgets(active);
|
||||||
|
mType->setEnabled(active);
|
||||||
|
}
|
||||||
|
|
|
@ -28,6 +28,8 @@ namespace CSVWorld
|
||||||
CellCreator (CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
|
CellCreator (CSMWorld::Data& data, QUndoStack& undoStack, const CSMWorld::UniversalId& id);
|
||||||
|
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
|
|
||||||
|
virtual void toggleWidgets(bool active = true);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue