From 2b2abcf3d7bc2bf36b3f3fe8062e71698928a026 Mon Sep 17 00:00:00 2001 From: Ilia Ryabokon Date: Thu, 9 Aug 2012 16:34:06 +0300 Subject: [PATCH] Regexp fix --- src/board/UBFeaturesController.cpp | 2 -- src/gui/UBFeaturesWidget.cpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/board/UBFeaturesController.cpp b/src/board/UBFeaturesController.cpp index e8ad51c4..afc8ec53 100644 --- a/src/board/UBFeaturesController.cpp +++ b/src/board/UBFeaturesController.cpp @@ -22,8 +22,6 @@ const QString UBFeaturesController::virtualRootName = "root"; - - void UBFeaturesComputingThread::scanFS(const QUrl & currentPath, const QString & currVirtualPath) { Q_ASSERT(QFileInfo(currentPath.toLocalFile()).exists()); diff --git a/src/gui/UBFeaturesWidget.cpp b/src/gui/UBFeaturesWidget.cpp index 6d007f48..a8818582 100644 --- a/src/gui/UBFeaturesWidget.cpp +++ b/src/gui/UBFeaturesWidget.cpp @@ -604,8 +604,6 @@ void UBFeaturesCentralWidget::increaseStatusBarValue() UBFeaturesNewFolderDialog::UBFeaturesNewFolderDialog(QWidget *parent) : QWidget(parent) { -// SET_STYLE_SHEET() - this->setStyleSheet("background:white;"); QVBoxLayout *mainLayout = new QVBoxLayout(); @@ -616,7 +614,7 @@ UBFeaturesNewFolderDialog::UBFeaturesNewFolderDialog(QWidget *parent) : QWidget( QLabel *mLabel = new QLabel(labelText, this); mLineEdit = new QLineEdit(this); - mValidator = new QRegExpValidator(QRegExp("[\^\/\:\?\*\|\<\>\"]{2,}"), this); + mValidator = new QRegExpValidator(QRegExp("[^\\/\\:\\?\\*\\|\\<\\>\\\"]{2,}"), this); mLineEdit->setValidator(mValidator); labelLayout->addWidget(mLabel); labelLayout->addWidget(mLineEdit);