mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-04 01:51:38 +00:00
Editor: add ID validator to pathgrid input
This commit is contained in:
parent
207695e094
commit
3714c2a0f2
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "../../model/world/idtable.hpp"
|
#include "../../model/world/idtable.hpp"
|
||||||
|
|
||||||
#include "../widget/droplineedit.hpp"
|
#include "../widget/droplineedit.hpp"
|
||||||
|
#include "idvalidator.hpp"
|
||||||
|
|
||||||
std::string CSVWorld::PathgridCreator::getId() const
|
std::string CSVWorld::PathgridCreator::getId() const
|
||||||
{
|
{
|
||||||
|
@ -40,6 +41,7 @@ CSVWorld::PathgridCreator::PathgridCreator(
|
||||||
CSMWorld::ColumnBase::Display displayType = CSMWorld::ColumnBase::Display_Cell;
|
CSMWorld::ColumnBase::Display displayType = CSMWorld::ColumnBase::Display_Cell;
|
||||||
mCell = new CSVWidget::DropLineEdit(displayType, this);
|
mCell = new CSVWidget::DropLineEdit(displayType, this);
|
||||||
mCell->setCompleter(completionManager.getCompleter(displayType).get());
|
mCell->setCompleter(completionManager.getCompleter(displayType).get());
|
||||||
|
mCell->setValidator(new IdValidator(relaxedIdRules, this));
|
||||||
insertBeforeButtons(mCell, true);
|
insertBeforeButtons(mCell, true);
|
||||||
|
|
||||||
connect(mCell, SIGNAL (textChanged(const QString&)), this, SLOT (cellChanged()));
|
connect(mCell, SIGNAL (textChanged(const QString&)), this, SLOT (cellChanged()));
|
||||||
|
|
Loading…
Reference in a new issue