Mercurial > hg > easaier-soundaccess
diff data/model/WaveFileModel.cpp @ 33:c14ebd0217af
add a busy cursor and statusBar information during the decompression and loading of an audio file.
author | lbajardsilogic |
---|---|
date | Tue, 15 May 2007 07:35:43 +0000 |
parents | fc9323a41f5a |
children | 61681a2bc1e6 |
line wrap: on
line diff
--- a/data/model/WaveFileModel.cpp Tue May 15 07:19:24 2007 +0000 +++ b/data/model/WaveFileModel.cpp Tue May 15 07:35:43 2007 +0000 @@ -32,6 +32,8 @@ //#define DEBUG_WAVE_FILE_MODEL 1 +#include "main/MainWindow.h" + using std::cerr; using std::endl; @@ -46,6 +48,8 @@ m_lastFillExtent(0), m_exiting(false) { + MainWindow::instance()->setCursor(Qt::BusyCursor); + MainWindow::instance()->statusBar()->showMessage(tr("Opening audio file...")); m_reader = AudioFileReaderFactory::createReader(path); setObjectName(QFileInfo(path).fileName()); if (isOK()) fillCache(); @@ -434,6 +438,8 @@ void WaveFileModel::cacheFilled() { + MainWindow::instance()->setCursor(Qt::ArrowCursor); + MainWindow::instance()->statusBar()->clearMessage(); m_mutex.lock(); delete m_fillThread; m_fillThread = 0;