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
Tobias Hunger
qt-creator
Commits
7e1ee7d1
Commit
7e1ee7d1
authored
Mar 10, 2009
by
Roberto Raggi
Browse files
Use the _right_ project path.
parent
a24ad171
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/genericprojectmanager/genericprojectnodes.cpp
View file @
7e1ee7d1
...
...
@@ -28,6 +28,7 @@
**************************************************************************/
#include "genericprojectnodes.h"
#include <QDir>
#include <QFileInfo>
#include <QSettings>
#include <QtDebug>
...
...
@@ -66,12 +67,12 @@ void GenericProjectNode::refresh()
FileNode
*
projectFileNode
=
new
FileNode
(
projectFilePath
(),
ProjectFileType
,
/*generated = */
false
);
fileNodes
.
append
(
projectFileNode
);
foreach
(
const
QString
&
file
,
_files
)
{
QFileInfo
fileInfo
(
file
);
QDir
projectPath
(
path
());
foreach
(
const
QString
&
file
,
_files
)
{
QFileInfo
fileInfo
(
projectPath
,
file
);
QString
filePath
=
fileInfo
.
absoluteFilePath
();
FileType
fileType
=
SourceType
;
FileType
fileType
=
SourceType
;
// ### FIXME
FileNode
*
fileNode
=
new
FileNode
(
filePath
,
fileType
,
/*generated = */
false
);
...
...
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