Skip to content

Commit

Permalink
docs: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixoo committed Jan 17, 2025
1 parent 1cf2900 commit 88e6ea0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/core/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

#include "Boxes/containerbox.h"
#include "colorhelpers.h"
#include <QThread>
#include "CacheHandlers/hddcachablecachehandler.h"
#include "skia/skiaincludes.h"
#include "GUI/valueinput.h"
Expand All @@ -35,15 +34,12 @@
//#include "Paint/drawableautotiledsurface.h"
#include "canvasbase.h"
//#include "Paint/animatedsurface.h"
#include <QAction>
#include "Animators/outlinesettingsanimator.h"
//#include "Paint/painttarget.h"
#include "CacheHandlers/usepointer.h"
#include "CacheHandlers/sceneframecontainer.h"
#include "undoredo.h"
#include "drawpath.h"
#include <QMouseEvent>
#include <QTabletEvent>

class AnimatedSurface;
//class PaintBox;
Expand Down Expand Up @@ -341,6 +337,7 @@ class CORE_EXPORT Canvas : public CanvasBase

QRect getCurrentBounds() const
{
// TODO: ?
//if(mClipToCanvasSize) return getCanvasBounds();
//else return getMaxBounds();
return getMaxBounds();
Expand Down
2 changes: 1 addition & 1 deletion src/core/canvashandlesmartpath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void Canvas::handleAddSmartPointMouseMove(const eMouseEvent &e) {
mLastEndPoint->moveC0ToAbsPos(e.fPos);
} else {
if(!mLastEndPoint->hasNextNormalPoint() &&
!mLastEndPoint->hasPrevNormalPoint()) {
!mLastEndPoint->hasPrevNormalPoint()) {
mLastEndPoint->setCtrlsMode(CtrlsMode::corner);
mLastEndPoint->setC2Enabled(true);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/core/canvasmouseinteractions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,8 @@ void Canvas::handleMovePointMouseMove(const eMouseEvent &e) {
}

void Canvas::scaleSelected(const eMouseEvent& e) {
const QPointF absPos = mRotPivot->getAbsolutePos();
const QPointF distMoved = e.fPos - e.fLastPressPos;
const auto absPos = mRotPivot->getAbsolutePos();
const auto distMoved = e.fPos - e.fLastPressPos;

qreal scaleBy;
if(mValueInput.inputEnabled()) {
Expand Down
7 changes: 1 addition & 6 deletions src/core/canvasselectedboxesactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,6 @@ void Canvas::rotateSelectedBy(const qreal rotBy,
}
}

void Canvas::scaleSelectedBy(const qreal scaleBy,
const QPointF &absOrigin,
const bool startTrans) {
scaleSelectedBy(scaleBy, scaleBy, absOrigin, startTrans);
}

void Canvas::scaleSelectedBy(const qreal scaleXBy,
const qreal scaleYBy,
const QPointF& absOrigin,
Expand Down Expand Up @@ -686,6 +680,7 @@ void Canvas::moveSelectedBoxesByAbs(const QPointF &by,
}
}

// FIXME: ?
//QPointF BoxesGroup::getRelCenterPosition() {
// QPointF posSum = QPointF(0., 0.);
// if(mChildren.isEmpty()) return posSum;
Expand Down

0 comments on commit 88e6ea0

Please sign in to comment.