Thu, 04 Jul 2013 03:29:51 +0300
fixed: when a new message line was added, the viewport wasn't updated
src/gldraw.cpp | file | annotate | diff | comparison | revisions | |
src/gui.cpp | file | annotate | diff | comparison | revisions | |
src/msglog.cpp | file | annotate | diff | comparison | revisions |
--- a/src/gldraw.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/gldraw.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -649,13 +649,12 @@ // Message log if( msglog() ) { - MessageManager* m = msglog(); int y = 0; const int margin = 2; QColor col = Qt::black; paint.setPen( QPen() ); - for( const MessageManager::Line& line : *m ) + for( const MessageManager::Line& line : *msglog()) { col.setAlphaF( line.alpha ); paint.setPen( QPen( col ));
--- a/src/gui.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/gui.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -1022,6 +1022,7 @@ hidetimer->setSingleShot (true); hidetimer->start (1500); m_primLoaderBar->setFormat( tr( "Done" )); + log( tr( "Primitives scanned: %1 primitives listed" ), m_primLoaderBar->value() ); } // =============================================================================
--- a/src/msglog.cpp Thu Jul 04 03:08:34 2013 +0300 +++ b/src/msglog.cpp Thu Jul 04 03:29:51 2013 +0300 @@ -71,9 +71,9 @@ m_lines << Line( line ); - // Force a tick, we added a new message and it should - // show up immediately. - tick(); + // Update the renderer view + if( renderer() ) + renderer()->update(); } MessageManager& MessageManager::operator<<( str line ) @@ -96,7 +96,7 @@ changed |= lineChanged; } - if( changed ) + if( changed && renderer() ) renderer()->update(); }