Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
90c1c8f5
Commit
90c1c8f5
authored
Mar 02, 2010
by
dt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cancel a previous update code model
parent
ab8fc52d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.cpp
+2
-2
src/plugins/cpptools/cppmodelmanager.h
src/plugins/cpptools/cppmodelmanager.h
+1
-1
src/plugins/cpptools/cppmodelmanagerinterface.h
src/plugins/cpptools/cppmodelmanagerinterface.h
+2
-1
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qt4project.cpp
+2
-2
src/plugins/qt4projectmanager/qt4project.h
src/plugins/qt4projectmanager/qt4project.h
+1
-0
No files found.
src/plugins/cpptools/cppmodelmanager.cpp
View file @
90c1c8f5
...
...
@@ -781,8 +781,8 @@ CppModelManager::WorkingCopy CppModelManager::workingCopy() const
return
const_cast
<
CppModelManager
*>
(
this
)
->
buildWorkingCopyList
();
}
void
CppModelManager
::
updateSourceFiles
(
const
QStringList
&
sourceFiles
)
{
(
void
)
refreshSourceFiles
(
sourceFiles
);
}
QFuture
<
void
>
CppModelManager
::
updateSourceFiles
(
const
QStringList
&
sourceFiles
)
{
return
refreshSourceFiles
(
sourceFiles
);
}
QList
<
CppModelManager
::
ProjectInfo
>
CppModelManager
::
projectInfos
()
const
{
...
...
src/plugins/cpptools/cppmodelmanager.h
View file @
90c1c8f5
...
...
@@ -87,7 +87,7 @@ public:
CppModelManager
(
QObject
*
parent
);
virtual
~
CppModelManager
();
virtual
void
updateSourceFiles
(
const
QStringList
&
sourceFiles
);
virtual
QFuture
<
void
>
updateSourceFiles
(
const
QStringList
&
sourceFiles
);
virtual
WorkingCopy
workingCopy
()
const
;
virtual
QList
<
ProjectInfo
>
projectInfos
()
const
;
...
...
src/plugins/cpptools/cppmodelmanagerinterface.h
View file @
90c1c8f5
...
...
@@ -36,6 +36,7 @@
#include <QtCore/QHash>
#include <QtCore/QPointer>
#include <QtCore/QStringList>
#include <QtCore/QFuture>
namespace
ProjectExplorer
{
class
Project
;
...
...
@@ -128,7 +129,7 @@ public:
public
Q_SLOTS
:
void
updateModifiedSourceFiles
();
virtual
void
updateSourceFiles
(
const
QStringList
&
sourceFiles
)
=
0
;
virtual
QFuture
<
void
>
updateSourceFiles
(
const
QStringList
&
sourceFiles
)
=
0
;
virtual
void
GC
()
=
0
;
};
...
...
src/plugins/qt4projectmanager/qt4project.cpp
View file @
90c1c8f5
...
...
@@ -403,7 +403,7 @@ void Qt4Project::updateCodeModel()
if
(
debug
)
qDebug
()
<<
"Qt4Project::updateCodeModel()"
;
// TODO cancel still running indexing
m_codeModelFuture
.
cancel
();
if
(
!
activeTarget
()
||
!
activeTarget
()
->
activeBuildConfiguration
())
return
;
...
...
@@ -576,7 +576,7 @@ void Qt4Project::updateCodeModel()
pinfo
.
precompiledHeaders
=
allPrecompileHeaders
;
modelmanager
->
updateProjectInfo
(
pinfo
);
modelmanager
->
updateSourceFiles
(
pinfo
.
sourceFiles
);
m_codeModelFuture
=
modelmanager
->
updateSourceFiles
(
pinfo
.
sourceFiles
);
}
}
...
...
src/plugins/qt4projectmanager/qt4project.h
View file @
90c1c8f5
...
...
@@ -235,6 +235,7 @@ private:
QList
<
Internal
::
Qt4ProFileNode
*>
m_partialEvaluate
;
QMap
<
QString
,
Internal
::
CodeModelInfo
>
m_codeModelInfo
;
QFuture
<
void
>
m_codeModelFuture
;
friend
class
Qt4ProjectFile
;
friend
class
Internal
::
Qt4ProjectConfigWidget
;
...
...
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