Permalink
Browse files

Part of a label change fix

  • Loading branch information...
aelliott committed May 2, 2013
1 parent 3578377 commit 16b21e09b943750bea66bdc7e775030b628ab058
@@ -41,8 +41,8 @@ EditEdgeDialog::EditEdgeDialog(EdgeItem *edgeItem, QWidget *parent)
_ui->fromComboBox->findText(_edge->to()->id())
);
_labelValidator = new ListValidator(this);
_ui->labelEdit->setValidator(_labelValidator);
//_labelValidator = new ListValidator(this);
//_ui->labelEdit->setValidator(_labelValidator);
}
EditEdgeDialog::~EditEdgeDialog()
@@ -29,8 +29,8 @@ EditNodeDialog::EditNodeDialog(NodeItem *node, QWidget *parent)
_ui->rootCheckBox->setChecked(node->isRoot());
_ui->markedCheckBox->setChecked(node->marked());
_labelValidator = new ListValidator(this);
_ui->labelEdit->setValidator(_labelValidator);
//_labelValidator = new ListValidator(this);
//_ui->labelEdit->setValidator(_labelValidator);
}
EditNodeDialog::~EditNodeDialog()
View
@@ -182,7 +182,7 @@ List::List(const QString &labelStr)
continue;
}
rx = QRegExp("[a-zA-Z0-9_][a-zA-Z0-9_]{1,62}");
rx = QRegExp("[a-zA-Z0-9_][a-zA-Z0-9_]{,62}");
if(rx.indexIn(labelStr, labelPos) == labelPos)
{
QString identifier = rx.cap(0);

0 comments on commit 16b21e0

Please sign in to comment.