comparison view/Pane.cpp @ 384:c1e5af9f2c3c

...
author Chris Cannam
date Mon, 12 May 2008 12:38:59 +0000
parents 06b5f110c5d2
children c0818f064e66
comparison
equal deleted inserted replaced
383:b35184d0dfe5 384:c1e5af9f2c3c
972 sampleRate) 972 sampleRate)
973 .toText(false).c_str()) 973 .toText(false).c_str())
974 .arg(nativeRate) 974 .arg(nativeRate)
975 .arg(srNote); 975 .arg(srNote);
976 976
977 if (r.x() < m_scaleWidth + 5 + paint.fontMetrics().width(desc)) { 977 int x = m_scaleWidth + 5;
978 drawVisibleText(paint, m_scaleWidth + 5, 978 int pbw = getProgressBarWidth();
979 if (x < pbw + 5) x = pbw + 5;
980
981 std::cerr << "x = " << x << ", pbw = " << pbw << std::endl;
982
983 if (r.x() < x + paint.fontMetrics().width(desc)) {
984 drawVisibleText(paint, x,
979 height() - fontHeight + fontAscent - 6, 985 height() - fontHeight + fontAscent - 6,
980 desc, OutlinedText); 986 desc, OutlinedText);
981 } 987 }
982 } 988 }
983 989