Mercurial > hg > svcore
comparison data/fileio/QuickTimeFileReader.cpp @ 327:1d656dcda8ef
* some tweaks to improve usability of these classes in a console application
author | Chris Cannam |
---|---|
date | Fri, 02 Nov 2007 16:50:31 +0000 |
parents | c324d410b096 |
children | 1afaf98dbf11 |
comparison
equal
deleted
inserted
replaced
326:bb6e4c46e202 | 327:1d656dcda8ef |
---|---|
214 | 214 |
215 initialiseDecodeCache(); | 215 initialiseDecodeCache(); |
216 | 216 |
217 if (decodeMode == DecodeAtOnce) { | 217 if (decodeMode == DecodeAtOnce) { |
218 | 218 |
219 m_progress = new QProgressDialog | 219 if (dynamic_cast<QApplication *>(QCoreApplication::instance())) { |
220 (QObject::tr("Decoding %1...").arg(QFileInfo(m_path).fileName()), | 220 m_progress = new QProgressDialog |
221 QObject::tr("Stop"), 0, 100); | 221 (QObject::tr("Decoding %1...").arg(QFileInfo(m_path).fileName()), |
222 m_progress->hide(); | 222 QObject::tr("Stop"), 0, 100); |
223 m_progress->hide(); | |
224 } | |
223 | 225 |
224 while (1) { | 226 while (1) { |
225 | 227 |
226 UInt32 framesRead = m_d->blockSize; | 228 UInt32 framesRead = m_d->blockSize; |
227 UInt32 extractionFlags = 0; | 229 UInt32 extractionFlags = 0; |