summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
index 83e72e7b..418df26b 100644
--- a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
@@ -33,6 +33,8 @@
#include "Core.h"
#include "ProjectFile.h"
+#include <QtGui/qvalidator.h>
+
VariantTagDialog::VariantTagDialog(DialogType type, const QString &group, const QString &name,
QWidget *parent)
: QDialog(parent)
@@ -44,6 +46,9 @@ VariantTagDialog::VariantTagDialog(DialogType type, const QString &group, const
m_names.first = name;
+ QRegExpValidator *rgx = new QRegExpValidator(QRegExp("[\\w\\s]+"), this);
+ m_ui->lineEditTagName->setValidator(rgx);
+
if (type == AddGroup) {
setWindowTitle(tr("Add new Group"));
m_ui->label->setText(tr("Group name"));