Remove noisy debug messages.
--HG-- branch : develop
This commit is contained in:
parent
99d6ea5152
commit
d63cb30935
|
@ -62,7 +62,6 @@ public:
|
||||||
{
|
{
|
||||||
if (VFuzzyComparePossibleNulls(angle1, angle2) || not qFuzzyCompare(qAbs(angle1-angle2), 180) )
|
if (VFuzzyComparePossibleNulls(angle1, angle2) || not qFuzzyCompare(qAbs(angle1-angle2), 180) )
|
||||||
{
|
{
|
||||||
qDebug()<<"Make angle1 and angle2 correct.";
|
|
||||||
this->angle2 = this->angle1 + 180;
|
this->angle2 = this->angle1 + 180;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -174,8 +173,6 @@ VSplinePointData::VSplinePointData(VPointF pSpline, qreal angle1, const QString
|
||||||
{
|
{
|
||||||
if (not VFuzzyComparePossibleNulls(qAbs(angle1-angle2), 180))
|
if (not VFuzzyComparePossibleNulls(qAbs(angle1-angle2), 180))
|
||||||
{
|
{
|
||||||
qDebug()<<"Make angle1 and angle2 correct.";
|
|
||||||
|
|
||||||
QLineF line (0, 0, 100, 0);
|
QLineF line (0, 0, 100, 0);
|
||||||
|
|
||||||
if (not qmu::QmuTokenParser::IsSingle(angle1F) || qmu::QmuTokenParser::IsSingle(angle2F))
|
if (not qmu::QmuTokenParser::IsSingle(angle1F) || qmu::QmuTokenParser::IsSingle(angle2F))
|
||||||
|
|
|
@ -350,7 +350,6 @@ void VTextManager::FitFontSize(qreal fW, qreal fH)
|
||||||
while (lineLength > fW && iFS > MIN_FONT_SIZE);
|
while (lineLength > fW && iFS > MIN_FONT_SIZE);
|
||||||
}
|
}
|
||||||
SetFontSize(iFS);
|
SetFontSize(iFS);
|
||||||
qDebug() << "Font size" << GetSourceLinesCount() << iFS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -803,10 +803,8 @@ bool VPiecePath::IsVisible(const QHash<QString, QSharedPointer<VInternalVariable
|
||||||
QString formula = GetVisibilityTrigger();
|
QString formula = GetVisibilityTrigger();
|
||||||
// Replace line return character with spaces for calc if exist
|
// Replace line return character with spaces for calc if exist
|
||||||
formula.replace("\n", " ");
|
formula.replace("\n", " ");
|
||||||
qDebug() << "Formula: " << formula;
|
|
||||||
QScopedPointer<Calculator> cal(new Calculator());
|
QScopedPointer<Calculator> cal(new Calculator());
|
||||||
const qreal result = cal->EvalFormula(vars, formula);
|
const qreal result = cal->EvalFormula(vars, formula);
|
||||||
qDebug() << "Result: " << result;
|
|
||||||
|
|
||||||
if (qIsInf(result) || qIsNaN(result))
|
if (qIsInf(result) || qIsNaN(result))
|
||||||
{
|
{
|
||||||
|
|
|
@ -244,7 +244,6 @@ void VTextGraphicsItem::paint(QPainter *painter, const QStyleOptionGraphicsItem
|
||||||
*/
|
*/
|
||||||
void VTextGraphicsItem::SetSize(qreal fW, qreal fH)
|
void VTextGraphicsItem::SetSize(qreal fW, qreal fH)
|
||||||
{
|
{
|
||||||
qDebug() << "Setting size to" << fW << parentItem()->boundingRect().width();
|
|
||||||
// don't allow resize under specific size
|
// don't allow resize under specific size
|
||||||
if (fW > parentItem()->boundingRect().width())
|
if (fW > parentItem()->boundingRect().width())
|
||||||
{
|
{
|
||||||
|
@ -264,7 +263,6 @@ void VTextGraphicsItem::SetSize(qreal fW, qreal fH)
|
||||||
}
|
}
|
||||||
|
|
||||||
prepareGeometryChange();
|
prepareGeometryChange();
|
||||||
qDebug() << "Actual size set to" << fW;
|
|
||||||
m_rectBoundingBox.setTopLeft(QPointF(0, 0));
|
m_rectBoundingBox.setTopLeft(QPointF(0, 0));
|
||||||
m_rectBoundingBox.setWidth(fW);
|
m_rectBoundingBox.setWidth(fW);
|
||||||
m_rectBoundingBox.setHeight(fH);
|
m_rectBoundingBox.setHeight(fH);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user