Mercurial > hg > svgui
diff widgets/Pane.cpp @ 48:97b0643bd799
* A bit more work on main window / document / commands stuff. This is still
pretty unstable.
* Enable CSV file reader also to read files with other separators (e.g. .lab
files with space separators)
* Show "(R)" on waveform display when resampling during playback
* Add ability to import additional audio files (can't process them yet)
* Fixes to spectrogram cache for multiple views
* Fix to avoid floating-point exception in sparse model when resolution not
set yet
author | Chris Cannam |
---|---|
date | Mon, 06 Mar 2006 17:20:25 +0000 |
parents | ad214997dddb |
children | 2818ec5d1985 |
line wrap: on
line diff
--- a/widgets/Pane.cpp Fri Mar 03 17:52:21 2006 +0000 +++ b/widgets/Pane.cpp Mon Mar 06 17:20:25 2006 +0000 @@ -300,11 +300,13 @@ if (waveformModel) { - QString desc = tr("%1 / %2Hz") + QString desc = tr("%1 / %2Hz%3") .arg(RealTime::frame2RealTime(waveformModel->getEndFrame(), - waveformModel->getSampleRate()) + sampleRate) .toText(false).c_str()) - .arg(waveformModel->getSampleRate()); + .arg(sampleRate) + .arg((m_manager && + sampleRate != m_manager->getPlaybackSampleRate()) ? " (R)" : ""); paint.drawText(width() - paint.fontMetrics().width(desc) - 5, height() - paint.fontMetrics().height() +