push thatv thing

This commit is contained in:
Jan Schuffenhauer
2020-01-17 08:56:00 +01:00
parent 5b94ffda3c
commit 3af7470a05
10 changed files with 14 additions and 400 deletions

View File

@@ -12,11 +12,11 @@ void IntelliColorPicker::swapColors(){
std::swap(firstColor, secondColor);
}
QColor IntelliColorPicker::getFirstColor(){
QColor IntelliColorPicker::getFirstColor() const{
return this->firstColor;
}
QColor IntelliColorPicker::getSecondColor(){
QColor IntelliColorPicker::getSecondColor() const{
return this->secondColor;
}

View File

@@ -33,13 +33,13 @@ void swapColors();
* \brief A function to read the primary selected color.
* \return Returns the primary color.
*/
QColor getFirstColor();
QColor getFirstColor() const;
/*!
* \brief A function to read the secondary selected color.
* \return Returns the secondary color.
*/
QColor getSecondColor();
QColor getSecondColor() const;
/*!
* \brief A function to set the primary color.

View File

@@ -9,6 +9,6 @@ void IntelliRenderSettings::setFastRendering(bool Updatedsetting){
this->fastRenderering = Updatedsetting;
}
bool IntelliRenderSettings::isFastRenderering(){
bool IntelliRenderSettings::isFastRenderering() const{
return fastRenderering;
}

View File

@@ -20,7 +20,7 @@ void setFastRendering(bool Updatedsetting);
* \brief The getfastRenderer gets the value of the flag for the fastRenderer setting.
* \return Returns true if fastRenderer is active else false
*/
bool isFastRenderering();
bool isFastRenderering() const;
private:
bool fastRenderering = true;

View File

@@ -11,7 +11,7 @@ IntelliToolsettings::~IntelliToolsettings(){
}
int IntelliToolsettings::getLineWidth(){
int IntelliToolsettings::getLineWidth() const{
return lineWidth;
}
@@ -25,7 +25,7 @@ void IntelliToolsettings::setLineWidth(int LineWidth){
lineWidth = LineWidth;
}
int IntelliToolsettings::getInnerAlpha(){
int IntelliToolsettings::getInnerAlpha() const{
return this->innerAlpha;
}

View File

@@ -10,10 +10,10 @@ public:
IntelliToolsettings();
virtual ~IntelliToolsettings();
int getLineWidth();
int getLineWidth() const;
void setLineWidth(int LineWidth);
int getInnerAlpha();
int getInnerAlpha() const;
void setInnerAlpha(int innerAlpha);
private:

View File

@@ -96,10 +96,10 @@ void IntelliTool::deleteToolLayer(){
this->Canvas = nullptr;
}
IntelliTool::Tooltype IntelliTool::getTooltype(){
IntelliTool::Tooltype IntelliTool::getTooltype() const{
return ActiveType;
}
bool IntelliTool::getIsDrawing(){
bool IntelliTool::getIsDrawing() const{
return isDrawing;
}

View File

@@ -127,9 +127,9 @@ virtual void onWheelScrolled(int value);
*/
virtual void onMouseMoved(int x, int y);
Tooltype getTooltype();
Tooltype getTooltype() const;
bool getIsDrawing();
bool getIsDrawing() const;
};
#endif