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
f8453428
Commit
f8453428
authored
Jun 29, 2009
by
Erik Verbruggen
Browse files
Fixed mimetype check for Objective-C(++) files.
parent
fc145c2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppmodelmanager.cpp
View file @
f8453428
...
...
@@ -1380,6 +1380,7 @@ void CppModelManager::parse(QFutureInterface<void> &future,
QStringList
headers
,
sources
;
Core
::
MimeType
cSourceTy
=
db
->
findByType
(
QLatin1String
(
"text/x-csrc"
));
Core
::
MimeType
cppSourceTy
=
db
->
findByType
(
QLatin1String
(
"text/x-c++src"
));
Core
::
MimeType
mSourceTy
=
db
->
findByType
(
QLatin1String
(
"text/x-objcsrc"
));
Core
::
MimeType
cHeaderTy
=
db
->
findByType
(
QLatin1String
(
"text/x-hdr"
));
Core
::
MimeType
cppHeaderTy
=
db
->
findByType
(
QLatin1String
(
"text/x-c++hdr"
));
...
...
@@ -1387,7 +1388,7 @@ void CppModelManager::parse(QFutureInterface<void> &future,
foreach
(
const
QString
&
file
,
files
)
{
const
QFileInfo
fileInfo
(
file
);
if
(
cSourceTy
.
matchesFile
(
fileInfo
)
||
cppSourceTy
.
matchesFile
(
fileInfo
))
if
(
cSourceTy
.
matchesFile
(
fileInfo
)
||
cppSourceTy
.
matchesFile
(
fileInfo
)
||
mSourceTy
.
matchesFile
(
fileInfo
)
)
sources
.
append
(
file
);
else
if
(
cHeaderTy
.
matchesFile
(
fileInfo
)
||
cppHeaderTy
.
matchesFile
(
fileInfo
))
...
...
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