comparison base/ProgressPrinter.cpp @ 521:5ebcf099dab0

* truncate long prefix
author Chris Cannam
date Thu, 11 Dec 2008 15:19:24 +0000
parents 77b4ce536d8f
children 076dcd2ce209
comparison
equal deleted inserted replaced
520:e340b2fb9471 521:5ebcf099dab0
21 ProgressReporter(parent), 21 ProgressReporter(parent),
22 m_prefix(message), 22 m_prefix(message),
23 m_lastProgress(0), 23 m_lastProgress(0),
24 m_definite(true) 24 m_definite(true)
25 { 25 {
26 if (m_prefix.length() > 70) {
27 m_prefix = m_prefix.left(70) + "...";
28 }
26 } 29 }
27 30
28 ProgressPrinter::~ProgressPrinter() 31 ProgressPrinter::~ProgressPrinter()
29 { 32 {
30 if (m_lastProgress > 0 && m_lastProgress != 100) { 33 if (m_lastProgress > 0 && m_lastProgress != 100) {