Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3839d4c0
Commit
3839d4c0
authored
Jan 21, 2010
by
Sebastian Eichelbaum
Browse files
[CHANGE] - progress now gets displayed in the right format and updated more frequently
parent
40a0b490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
+5
-3
No files found.
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
View file @
3839d4c0
...
...
@@ -22,7 +22,7 @@
//
//---------------------------------------------------------------------------
#include <
s
stream>
#include <
io
stream>
#include <string>
#include "../../../common/WProgressCombiner.h"
...
...
@@ -49,7 +49,7 @@ WQtTreeItem::WQtTreeItem( QTreeWidgetItem * parent, int type, boost::shared_ptr<
m_updateTimer
=
boost
::
shared_ptr
<
QTimer
>
(
new
QTimer
()
);
connect
(
m_updateTimer
.
get
(),
SIGNAL
(
timeout
()
),
this
,
SLOT
(
update
()
)
);
m_updateTimer
->
start
(
2
50
);
m_updateTimer
->
start
(
50
);
}
WQtTreeItem
::~
WQtTreeItem
()
...
...
@@ -86,7 +86,9 @@ void WQtTreeItem::updateState()
if
(
p
->
isDetermined
()
)
{
title
<<
" - "
<<
std
::
setprecision
(
0
)
<<
p
->
getProgress
()
<<
"%"
;
title
.
setf
(
std
::
ios
::
fixed
);
title
.
precision
(
0
);
title
<<
" - "
<<
p
->
getProgress
()
<<
"%"
;
}
else
{
...
...
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