[TechDraw] Remove obsolete getYInClip method

This commit is contained in:
pavltom
2023-11-16 15:22:53 +01:00
committed by WandererFan
parent 095160d438
commit 4703c77067
2 changed files with 3 additions and 15 deletions

View File

@@ -175,8 +175,7 @@ QVariant QGIView::itemChange(GraphicsItemChange change, const QVariant &value)
} else {
Gui::ViewProvider *vp = getViewProvider(viewObj);
if (vp && !vp->isRestoring()) {
viewObj->setPosition(Rez::appX(newPos.x()),
Rez::appX(isInnerView() ? getYInClip(newPos.y()) : -newPos.y()));
viewObj->setPosition(Rez::appX(newPos.x()), Rez::appX(-newPos.y()));
}
}
@@ -243,14 +242,10 @@ void QGIView::setPosition(qreal xPos, qreal yPos)
{
// Base::Console().Message("QGIV::setPosition(%.3f, %.3f) (gui)\n", x, y);
double newX = xPos;
double newY;
double newY = -yPos;
double oldX = pos().x();
double oldY = pos().y();
if (!isInnerView()) {
newY = -yPos;
} else {
newY = getYInClip(yPos);
}
if (TechDraw::DrawUtil::fpCompare(newX, oldX) &&
TechDraw::DrawUtil::fpCompare(newY, oldY)) {
return;
@@ -259,12 +254,6 @@ void QGIView::setPosition(qreal xPos, qreal yPos)
}
}
//is this needed anymore???
double QGIView::getYInClip(double y)
{
return -y;
}
QGIViewClip* QGIView::getClipGroup()
{
if (!getViewObject()->isInClip()) {

View File

@@ -118,7 +118,6 @@ public:
inline qreal getY() { return y() * -1; }
bool isInnerView() const { return m_innerView; }
void isInnerView(bool state) { m_innerView = state; }
double getYInClip(double y);
QGIViewClip* getClipGroup();