Skip to content
GitLab
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
7bee4a65
Commit
7bee4a65
authored
Feb 02, 2011
by
Pawel Polanski
Browse files
Appending the text tooltip of the progress bar has been enabled
parent
e6610124
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/buildmanager.cpp
View file @
7bee4a65
...
...
@@ -120,6 +120,8 @@ BuildManager::BuildManager(ProjectExplorerPlugin *parent)
connect
(
&
d
->
m_watcher
,
SIGNAL
(
progressValueChanged
(
int
)),
this
,
SLOT
(
progressChanged
()));
connect
(
&
d
->
m_watcher
,
SIGNAL
(
progressTextChanged
(
QString
)),
this
,
SLOT
(
progressTextChanged
()));
connect
(
&
d
->
m_watcher
,
SIGNAL
(
progressRangeChanged
(
int
,
int
)),
this
,
SLOT
(
progressChanged
()));
...
...
@@ -370,10 +372,19 @@ void BuildManager::progressChanged()
int
range
=
d
->
m_watcher
.
progressMaximum
()
-
d
->
m_watcher
.
progressMinimum
();
if
(
range
!=
0
)
{
int
percent
=
(
d
->
m_watcher
.
progressValue
()
-
d
->
m_watcher
.
progressMinimum
())
*
100
/
range
;
d
->
m_progressFutureInterface
->
setProgressValue
(
d
->
m_progress
*
100
+
percent
);
d
->
m_progressFutureInterface
->
setProgressValue
AndText
(
d
->
m_progress
*
100
+
percent
,
msgProgress
(
d
->
m_progress
,
d
->
m_maxProgress
)
+
"
\n
"
+
d
->
m_watcher
.
progressText
()
);
}
}
void
BuildManager
::
progressTextChanged
()
{
int
range
=
d
->
m_watcher
.
progressMaximum
()
-
d
->
m_watcher
.
progressMinimum
();
int
percent
=
0
;
if
(
range
!=
0
)
percent
=
(
d
->
m_watcher
.
progressValue
()
-
d
->
m_watcher
.
progressMinimum
())
*
100
/
range
;
d
->
m_progressFutureInterface
->
setProgressValueAndText
(
d
->
m_progress
*
100
+
percent
,
msgProgress
(
d
->
m_progress
,
d
->
m_maxProgress
)
+
"
\n
"
+
d
->
m_watcher
.
progressText
());
}
void
BuildManager
::
nextStep
()
{
if
(
!
d
->
m_buildQueue
.
empty
())
{
...
...
src/plugins/projectexplorer/buildmanager.h
View file @
7bee4a65
...
...
@@ -89,6 +89,7 @@ private slots:
void
nextBuildQueue
();
void
progressChanged
();
void
progressTextChanged
();
void
emitCancelMessage
();
void
showBuildResults
();
void
updateTaskCount
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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