mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Refractored misspelled variable
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user