Mercurial > hg > svgui
diff layer/TextLayer.cpp @ 1051:c02c51ae5238 3.0-plus-imaf
Merge branches 3.0-integration and imaf_enc to 3.0-plus-imaf
author | Chris Cannam |
---|---|
date | Wed, 20 Apr 2016 12:06:28 +0100 |
parents | 4fe7a09be0fe 3437e0fad7ae |
children |
line wrap: on
line diff
--- a/layer/TextLayer.cpp Fri Mar 18 14:25:05 2016 +0000 +++ b/layer/TextLayer.cpp Wed Apr 20 12:06:28 2016 +0100 @@ -127,13 +127,13 @@ const TextModel::Point &p(*i); - int px = v->getXForFrame(p.frame); - int py = getYForHeight(v, p.height); + int px = v->getXForFrame(p.frame); + int py = getYForHeight(v, p.height); QString label = p.label; if (label == "") { - label = tr("<no text>"); - } + label = tr("<no text>"); + } QRect rect = metrics.boundingRect (QRect(0, 0, 150, 200), @@ -205,7 +205,7 @@ QString text; if (points.begin()->label == "") { - text = QString(tr("Time:\t%1\nHeight:\t%2\nLabel:\t%3")) + text = QString(tr("Time:\t%1\nHeight:\t%2\nLabel:\t%3")) .arg(rt.toText(true).c_str()) .arg(points.begin()->height) .arg(points.begin()->label); @@ -370,7 +370,7 @@ QString label = p.label; if (label == "") { - label = tr("<no text>"); + label = tr("<no text>"); } QRect boxRect = paint.fontMetrics().boundingRect @@ -453,6 +453,8 @@ m_editingPoint.frame = frame; m_editingPoint.height = float(height); m_editingCommand->addPoint(m_editingPoint); + + } void