Commit 3839d4c0 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - progress now gets displayed in the right format and updated more frequently

parent 40a0b490
......@@ -22,7 +22,7 @@
//
//---------------------------------------------------------------------------
#include <sstream>
#include <iostream>
#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( 250 );
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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment