Refractored misspelled variable

This commit is contained in:
2019-12-20 09:03:26 +01:00
parent 279b46bc1d
commit 0411c49534
2 changed files with 11 additions and 11 deletions

View File

@@ -12,12 +12,12 @@ IntelliToolRectangle::~IntelliToolRectangle(){
}
void IntelliToolRectangle::drawRectangle(QPoint otherCornor){
int xMin = std::min(originCornor.x(), otherCornor.x());
int xMax = std::max(originCornor.x(), otherCornor.x());
void IntelliToolRectangle::drawRectangle(QPoint otherCorner){
int xMin = std::min(originCorner.x(), otherCorner.x());
int xMax = std::max(originCorner.x(), otherCorner.x());
int yMin = std::min(originCornor.y(), otherCornor.y());
int yMax = std::max(originCornor.y(), otherCornor.y());
int yMin = std::min(originCorner.y(), otherCorner.y());
int yMax = std::max(originCorner.y(), otherCorner.y());
QColor clr = colorPicker->getSecondColor();
clr.setAlpha(alphaInner);
@@ -40,8 +40,8 @@ void IntelliToolRectangle::onMouseRightReleased(int x, int y){
void IntelliToolRectangle::onMouseLeftPressed(int x, int y){
IntelliTool::onMouseLeftPressed(x,y);
this->originCornor=QPoint(x,y);
drawRectangle(originCornor);
this->originCorner=QPoint(x,y);
drawRectangle(originCorner);
Canvas->image->calculateVisiblity();
}

View File

@@ -11,14 +11,14 @@
class IntelliToolRectangle : public IntelliTool {
/*!
* \brief A function that implements a rectagle drawing algorithm.
* \param otherCornor - The second corner point of the rectangle.
* \param othercorner - The second corner point of the rectangle.
*/
void drawRectangle(QPoint otherCornor);
void drawRectangle(QPoint otherCorner);
/*!
* \brief originCornor - The first corner point of the rectangle.
* \brief origincorner - The first corner point of the rectangle.
*/
QPoint originCornor;
QPoint originCorner;
/*!
* \brief alphaInner- Represents the alpha value of the inside.
*/