From 3714c2a0f2ac96cab194837e14fa763e0b78109a Mon Sep 17 00:00:00 2001 From: Rob Cutmore Date: Tue, 21 Mar 2017 08:14:04 -0400 Subject: [PATCH] Editor: add ID validator to pathgrid input --- apps/opencs/view/world/pathgridcreator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/opencs/view/world/pathgridcreator.cpp b/apps/opencs/view/world/pathgridcreator.cpp index d597254c6..7d2f46b91 100644 --- a/apps/opencs/view/world/pathgridcreator.cpp +++ b/apps/opencs/view/world/pathgridcreator.cpp @@ -10,6 +10,7 @@ #include "../../model/world/idtable.hpp" #include "../widget/droplineedit.hpp" +#include "idvalidator.hpp" std::string CSVWorld::PathgridCreator::getId() const { @@ -40,6 +41,7 @@ CSVWorld::PathgridCreator::PathgridCreator( CSMWorld::ColumnBase::Display displayType = CSMWorld::ColumnBase::Display_Cell; mCell = new CSVWidget::DropLineEdit(displayType, this); mCell->setCompleter(completionManager.getCompleter(displayType).get()); + mCell->setValidator(new IdValidator(relaxedIdRules, this)); insertBeforeButtons(mCell, true); connect(mCell, SIGNAL (textChanged(const QString&)), this, SLOT (cellChanged()));