Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
aee477ec
Commit
aee477ec
authored
Feb 19, 2019
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid slashes in tree nodes
parent
0cccd340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+4
-4
No files found.
src/document/UBDocumentController.cpp
View file @
aee477ec
...
@@ -120,8 +120,8 @@ UBDocumentReplaceDialog::UBDocumentReplaceDialog(const QString &pIncommingName,
...
@@ -120,8 +120,8 @@ UBDocumentReplaceDialog::UBDocumentReplaceDialog(const QString &pIncommingName,
mLineEdit
->
setText
(
pIncommingName
);
mLineEdit
->
setText
(
pIncommingName
);
mLineEdit
->
selectedText
();
mLineEdit
->
selectedText
();
mValidator
=
new
QRegExpValidator
(
QRegExp
(
"[^
\\
/
\\
:
\\
?
\\
*
\\
|
\\
<
\\
>
\\\"
]{1,}"
),
this
);
mValidator
=
new
QRegExpValidator
(
QRegExp
(
"[^
\\
/]{1,}"
),
this
);
//
mLineEdit->setValidator(mValidator);
mLineEdit
->
setValidator
(
mValidator
);
labelLayout
->
addWidget
(
mLabelText
);
labelLayout
->
addWidget
(
mLabelText
);
labelLayout
->
addWidget
(
mLineEdit
);
labelLayout
->
addWidget
(
mLineEdit
);
...
@@ -1567,8 +1567,8 @@ void UBDocumentTreeItemDelegate::processChangedText(const QString &str) const
...
@@ -1567,8 +1567,8 @@ void UBDocumentTreeItemDelegate::processChangedText(const QString &str) const
bool
UBDocumentTreeItemDelegate
::
validateString
(
const
QString
&
str
)
const
bool
UBDocumentTreeItemDelegate
::
validateString
(
const
QString
&
str
)
const
{
{
return
!
mExistingFileNames
.
contains
(
str
);
return
QRegExp
(
"[^
\\
/]{1,}"
).
exactMatch
(
str
)
&&
!
mExistingFileNames
.
contains
(
str
);
}
}
QWidget
*
UBDocumentTreeItemDelegate
::
createEditor
(
QWidget
*
parent
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
QWidget
*
UBDocumentTreeItemDelegate
::
createEditor
(
QWidget
*
parent
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment