comparison view/Pane.cpp @ 549:e6122e4999a3

* Add time display format preference
author Chris Cannam
date Fri, 25 Sep 2009 12:02:22 +0000
parents 0db823c49ed6
children c2ba2796cbee
comparison
equal deleted inserted replaced
548:265898470c53 549:e6122e4999a3
743 743
744 if (sampleRate) { 744 if (sampleRate) {
745 745
746 QString text(QString::fromStdString 746 QString text(QString::fromStdString
747 (RealTime::frame2RealTime 747 (RealTime::frame2RealTime
748 (m_centreFrame, sampleRate).toText(true))); 748 (m_centreFrame, sampleRate)
749 .toText(true)));
749 750
750 int tw = paint.fontMetrics().width(text); 751 int tw = paint.fontMetrics().width(text);
751 int x = width()/2 - 4 - tw; 752 int x = width()/2 - 4 - tw;
752 753
753 drawVisibleText(paint, x, y, text, OutlinedText); 754 drawVisibleText(paint, x, y, text, OutlinedText);