changeset 2:77dad696d740

* Add some tool icons (mostly nabbed from the Gimp) * Minor fixes
author Chris Cannam
date Tue, 10 Jan 2006 17:37:43 +0000
parents ab83c415a6cd
children 7af44e8578c8
files layer/TimeInstantLayer.cpp layer/WaveformLayer.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/layer/TimeInstantLayer.cpp	Tue Jan 10 17:04:02 2006 +0000
+++ b/layer/TimeInstantLayer.cpp	Tue Jan 10 17:37:43 2006 +0000
@@ -208,7 +208,7 @@
     long useFrame = points.begin()->frame;
 
     RealTime rt = RealTime::frame2RealTime(useFrame, m_model->getSampleRate());
-    QString timeText = QString("%1").arg(rt.toText(true).c_str());
+    QString timeText = QString(tr("Time %1")).arg(rt.toText(true).c_str());
 
     int timewidth = metrics.width(timeText);
     int labelwidth = metrics.width(points.begin()->label);
--- a/layer/WaveformLayer.cpp	Tue Jan 10 17:04:02 2006 +0000
+++ b/layer/WaveformLayer.cpp	Tue Jan 10 17:37:43 2006 +0000
@@ -336,11 +336,11 @@
     long startFrame = m_view->getStartFrame();
     int zoomLevel = m_view->getZoomLevel();
 
-
+#ifdef DEBUG_WAVEFORM_PAINT
     Profiler profiler("WaveformLayer::paint", true);
     std::cerr << "WaveformLayer::paint (" << rect.x() << "," << rect.y()
 	      << ") [" << rect.width() << "x" << rect.height() << "]: zoom " << zoomLevel << ", start " << startFrame << std::endl;
-
+#endif
 
     size_t channels = 0, minChannel = 0, maxChannel = 0;
     bool mergingChannels = false;