Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
f1feb0e2
Commit
f1feb0e2
authored
Dec 03, 2008
by
Roberto Raggi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the current progress value of the background parser.
parent
9c19ec02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.cpp
+5
-1
No files found.
src/plugins/cpptools/cppmodelmanager.cpp
View file @
f1feb0e2
...
...
@@ -505,7 +505,7 @@ CppModelManager::ProjectInfo *CppModelManager::projectInfo(ProjectExplorer::Proj
QFuture
<
void
>
CppModelManager
::
refreshSourceFiles
(
const
QStringList
&
sourceFiles
)
{
if
(
qgetenv
(
"QTCREATOR_NO_CODE_INDEXER"
).
isNull
())
{
if
(
!
sourceFiles
.
isEmpty
()
&&
qgetenv
(
"QTCREATOR_NO_CODE_INDEXER"
).
isNull
())
{
const
QMap
<
QString
,
QByteArray
>
workingCopy
=
buildWorkingCopyList
();
QFuture
<
void
>
result
=
QtConcurrent
::
run
(
&
CppModelManager
::
parse
,
this
,
...
...
@@ -657,6 +657,8 @@ void CppModelManager::parse(QFutureInterface<void> &future,
QStringList
files
,
QMap
<
QString
,
QByteArray
>
workingCopy
)
{
Q_ASSERT
(
!
files
.
isEmpty
());
// Change the priority of the background parser thread to idle.
QThread
::
currentThread
()
->
setPriority
(
QThread
::
IdlePriority
);
...
...
@@ -698,6 +700,8 @@ void CppModelManager::parse(QFutureInterface<void> &future,
#endif
}
future
.
setProgressValue
(
files
.
size
());
// Restore the previous thread priority.
QThread
::
currentThread
()
->
setPriority
(
QThread
::
NormalPriority
);
}
...
...
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