[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

@@ -96,7 +96,7 @@ void QGMarker::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
void QGMarker::mouseDoubleClickEvent(QGraphicsSceneMouseEvent * event)
{
// Base::Console().Message("QGMarker::mouseDoubleClickEvent(%d)\n",getProjIndex());
// Base::Console().Message("QGMarker::mouseDoubleClickEvent(%d)\n", getProjIndex());
if (event->button() == Qt::RightButton) { //we're done
Q_EMIT endEdit();
return;
@@ -106,21 +106,21 @@ void QGMarker::mouseDoubleClickEvent(QGraphicsSceneMouseEvent * event)
void QGMarker::keyPressEvent(QKeyEvent * event)
{
// Base::Console().Message("QGMarker::keyPressEvent(%d)\n",getProjIndex());
// Base::Console().Message("QGMarker::keyPressEvent(%d)\n", getProjIndex());
if (event->key() == Qt::Key_Escape) {
Q_EMIT endEdit();
}
QGIVertex::keyPressEvent(event);
}
void QGMarker::setRadius(float r)
void QGMarker::setRadius(float radius)
{
//TODO:: implement different marker shapes. circle, square, triangle, ???
//if (m_markerShape == Circle) { ...
//setRect(QRectF) for rectangular markers
m_radius = r;
m_radius = radius;
QPainterPath p;
p.addRect(-r/2.0, -r/2.0, r, r);
p.addRect(-radius/2.0, -radius/2.0, radius, radius);
setPath(p);
}
@@ -138,7 +138,7 @@ QGEPath::QGEPath(QGILeaderLine* leader) :
setFlag(QGraphicsItem::ItemIsSelectable, true);
setFlag(QGraphicsItem::ItemIsMovable, false);
setFlag(QGraphicsItem::ItemSendsScenePositionChanges, false);
setFlag(QGraphicsItem::ItemSendsGeometryChanges,true);
setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
m_ghost = new QGIPrimPath(); //drawing/editing line
m_ghost->setParentItem(this);
@@ -151,7 +151,7 @@ QGEPath::QGEPath(QGILeaderLine* leader) :
QVariant QGEPath::itemChange(GraphicsItemChange change, const QVariant &value)
{
// Base::Console().Message("QGEP::itemChange(%d) - type: %d\n", change,type() - QGraphicsItem::UserType);
// Base::Console().Message("QGEP::itemChange(%d) - type: %d\n", change, type() - QGraphicsItem::UserType);
if (change == ItemSelectedHasChanged && scene()) {
if(isSelected()) {
Q_EMIT selected(true);
@@ -339,7 +339,7 @@ std::vector<QPointF> QGEPath::getDeltasFromLeader()
//announce points editing is finished
void QGEPath::updateParent()
{
// Base::Console().Message("QGEPath::updateParent() - inEdit: %d pts: %d\n",inEdit(), m_ghostPoints.size());
// Base::Console().Message("QGEPath::updateParent() - inEdit: %d pts: %d\n", inEdit(), m_ghostPoints.size());
// dumpGhostPoints("QGEP::updateParent");
QPointF attach = m_ghostPoints.front();
if (!inEdit()) {
@@ -397,7 +397,7 @@ void QGEPath::dumpGhostPoints(const char* text)
int idb = 0;
for (auto& d: m_ghostPoints) {
Base::Console().Message("%s - point: %d %s\n", text,
idb,TechDraw::DrawUtil::formatVector(d).c_str());
idb, TechDraw::DrawUtil::formatVector(d).c_str());
idb++;
}
}
@@ -407,7 +407,7 @@ void QGEPath::dumpMarkerPos(const char* text)
int idb = 0;
for (auto& m: m_markers) {
Base::Console().Message("QGEP - %s - markerPos: %d %s\n", text,
idb,TechDraw::DrawUtil::formatVector(m->pos()).c_str());
idb, TechDraw::DrawUtil::formatVector(m->pos()).c_str());
idb++;
}
}