Fix wrong consts in editcallbacks.h (#5239)

This commit is contained in:
Flössie
2019-03-25 18:57:30 +01:00
parent 6747c5c7df
commit 14020ed356
6 changed files with 90 additions and 72 deletions

View File

@@ -331,7 +331,7 @@ void Gradient::editToggled ()
}
}
const CursorShape Gradient::getCursor(const int objectID) const
CursorShape Gradient::getCursor(int objectID) const
{
switch (objectID) {
case (0):
@@ -357,7 +357,7 @@ const CursorShape Gradient::getCursor(const int objectID) const
}
}
const bool Gradient::mouseOver(const int modifierKey)
bool Gradient::mouseOver(int modifierKey)
{
EditDataProvider* editProvider = getEditProvider();
@@ -387,7 +387,7 @@ const bool Gradient::mouseOver(const int modifierKey)
return false;
}
bool Gradient::button1Pressed(const int modifierKey)
bool Gradient::button1Pressed(int modifierKey)
{
if (lastObject < 0) {
return false;
@@ -466,7 +466,7 @@ bool Gradient::button1Released()
return true;
}
bool Gradient::drag1(const int modifierKey)
bool Gradient::drag1(int modifierKey)
{
// compute the polar coordinate of the mouse position
EditDataProvider *provider = getEditProvider();