Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b8faa952
Commit
b8faa952
authored
Jun 25, 2010
by
Alessandro Portale
Browse files
Change a QString concatenation.
So that QT_USE_FAST_OPERATOR_PLUS QT_USE_FAST_CONCATENATION may have an effect.
parent
64a2fa2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/find/searchresulttreemodel.cpp
View file @
b8faa952
...
...
@@ -245,10 +245,11 @@ QVariant SearchResultTreeModel::data(const SearchResultFile *file, int role) con
break
;
}
case
Qt
::
DisplayRole
:
{
QString
result
=
QDir
::
toNativeSeparators
(
file
->
fileName
());
result
+=
QLatin1String
(
" ("
);
result
+=
QString
::
number
(
file
->
childrenCount
());
result
+=
QLatin1Char
(
')'
);
const
QString
result
=
QDir
::
toNativeSeparators
(
file
->
fileName
())
+
QString
::
fromLatin1
(
" ("
)
+
QString
::
number
(
file
->
childrenCount
())
+
QLatin1Char
(
')'
);
return
QVariant
(
result
);
}
case
ItemDataRoles
::
FileNameRole
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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