# HG changeset patch # User Chris Cannam # Date 1136914663 0 # Node ID 77dad696d7409b96828246df1bf4a0ebcee7ac14 # Parent ab83c415a6cdd12cb4d2e775c84b778fd1baf3e0 * Add some tool icons (mostly nabbed from the Gimp) * Minor fixes diff -r ab83c415a6cd -r 77dad696d740 layer/TimeInstantLayer.cpp --- 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); diff -r ab83c415a6cd -r 77dad696d740 layer/WaveformLayer.cpp --- 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;