[TD]CI clang warnings

This commit is contained in:
wandererfan
2022-08-23 15:32:13 -04:00
committed by WandererFan
parent c075a298ae
commit aa2b1b8392
246 changed files with 3944 additions and 4241 deletions

View File

@@ -74,9 +74,9 @@ QGIViewAnnotation::QGIViewAnnotation()
m_textItem->setTextInteractionFlags(Qt::NoTextInteraction);
//To allow on screen editing of text:
//m_textItem->setTextInteractionFlags(Qt::TextEditorInteraction); //this works
//QObject::connect(QGraphicsTextItem::document(), SIGNAL(contentsChanged()),m_textItem, SLOT(updateText())); //not tested
//QObject::connect(QGraphicsTextItem::document(), SIGNAL(contentsChanged()), m_textItem, SLOT(updateText())); //not tested
addToGroup(m_textItem);
m_textItem->setPos(0.,0.);
m_textItem->setPos(0., 0.);
}
@@ -144,7 +144,7 @@ void QGIViewAnnotation::drawAnnotation()
} else if (viewAnno->TextStyle.isValue("Bold-Italic")) {
ss << "font-weight:bold; font-style:italic; ";
} else {
Base::Console().Warning("%s has invalid TextStyle\n",viewAnno->getNameInDocument());
Base::Console().Warning("%s has invalid TextStyle\n", viewAnno->getNameInDocument());
ss << "font-weight:normal; font-style:normal; ";
}
ss << "line-height:" << viewAnno->LineSpace.getValue() << "%; ";
@@ -166,7 +166,7 @@ void QGIViewAnnotation::drawAnnotation()
m_textItem->setTextWidth(Rez::guiX(viewAnno->MaxWidth.getValue()));
QString qs = QString::fromUtf8(ss.str().c_str());
m_textItem->setHtml(qs);
m_textItem->centerAt(0.,0.);
m_textItem->centerAt(0., 0.);
}
void QGIViewAnnotation::rotateView()