comparison layer/SliceLayer.cpp @ 191:be6d31baecb9

compilation under linux - kunbuntu V7.10 (without video support)
author lbajardsilogic
date Wed, 28 Nov 2007 13:03:45 +0000
parents fc9323a41f5a
children
comparison
equal deleted inserted replaced
190:61681a2bc1e6 191:be6d31baecb9
435 435
436 int 436 int
437 SliceLayer::getVerticalScaleWidth(View *, QPainter &paint) const 437 SliceLayer::getVerticalScaleWidth(View *, QPainter &paint) const
438 { 438 {
439 if (m_energyScale == LinearScale) { 439 if (m_energyScale == LinearScale) {
440 return max(paint.fontMetrics().width("0.0") + 13, 440 return MAX(paint.fontMetrics().width("0.0") + 13,
441 paint.fontMetrics().width("x10-10")); 441 paint.fontMetrics().width("x10-10"));
442 } else { 442 } else {
443 return max(paint.fontMetrics().width(tr("0dB")), 443 return MAX(paint.fontMetrics().width(tr("0dB")),
444 paint.fontMetrics().width(tr("-Inf"))) + 13; 444 paint.fontMetrics().width(tr("-Inf"))) + 13;
445 } 445 }
446 } 446 }
447 447
448 void 448 void