Skip to content
GitLab
Menu
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
d6be0395
Commit
d6be0395
authored
Aug 23, 2010
by
hjk
Browse files
qt4projectmanager: don't overuse QString::replace
parent
c00266c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp
View file @
d6be0395
...
...
@@ -157,8 +157,10 @@ void GettingStartedWelcomePageWidget::updateCppExamples(const QString &examplePa
QString
fileName
=
examplePath
+
relativeProPath
;
if
(
!
QFile
::
exists
(
fileName
))
fileName
=
sourcePath
+
QLatin1String
(
"/examples"
)
+
relativeProPath
;
QString
dirName1
=
dirName
;
dirName1
.
replace
(
slash
,
QLatin1Char
(
'-'
));
QString
helpPath
=
QLatin1String
(
"qthelp://com.trolltech.qt/qdoc/"
)
+
dirName
.
replace
(
slash
,
QLatin1Char
(
'-'
))
+
dirName
1
+
QLatin1Char
(
'-'
)
+
fn
+
QLatin1String
(
".html"
);
QAction
*
exampleAction
=
subMenu
->
addAction
(
name
);
...
...
Write
Preview
Supports
Markdown
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