Reworked some method names

This commit is contained in:
2019-12-20 10:42:49 +01:00
parent 86a01eb9ae
commit 8efe6836bf
3 changed files with 7 additions and 7 deletions

View File

@@ -120,7 +120,7 @@ void IntelliPhotoGui::slotSetActiveAlpha(){
255,0, 255, 1, &ok2); 255,0, 255, 1, &ok2);
if (ok1&&ok2) if (ok1&&ok2)
{ {
paintingArea->setAlphaOfLayer(layer,alpha); paintingArea->setLayerAlpha(layer,alpha);
} }
} }
@@ -194,7 +194,7 @@ void IntelliPhotoGui::slotSetActiveLayer(){
-1,0,255,1, &ok1); -1,0,255,1, &ok1);
if (ok1) if (ok1)
{ {
paintingArea->setLayerToActive(layer); paintingArea->setLayerActive(layer);
} }
} }

View File

@@ -86,13 +86,13 @@ void PaintingArea::slotDeleteActiveLayer(){
} }
} }
void PaintingArea::setLayerToActive(int index){ void PaintingArea::setLayerActive(int index){
if(index>=0&&index<static_cast<int>(layerBundle.size())) { if(index>=0&&index<static_cast<int>(layerBundle.size())) {
this->activeLayer=index; this->activeLayer=index;
} }
} }
void PaintingArea::setAlphaOfLayer(int index, int alpha){ void PaintingArea::setLayerAlpha(int index, int alpha){
if(index>=0&&index<static_cast<int>(layerBundle.size())) { if(index>=0&&index<static_cast<int>(layerBundle.size())) {
layerBundle[static_cast<size_t>(index)].alpha=alpha; layerBundle[static_cast<size_t>(index)].alpha=alpha;
} }
@@ -159,7 +159,7 @@ void PaintingArea::moveActiveLayer(int idx){
void PaintingArea::slotActivateLayer(int a){ void PaintingArea::slotActivateLayer(int a){
if(a>=0 && a < static_cast<int>(layerBundle.size())) { if(a>=0 && a < static_cast<int>(layerBundle.size())) {
this->setLayerToActive(a); this->setLayerActive(a);
} }
} }

View File

@@ -100,13 +100,13 @@ public:
* \brief The setLayerToActive method marks a specific layer as active * \brief The setLayerToActive method marks a specific layer as active
* \param index - Index of the layer to be active * \param index - Index of the layer to be active
*/ */
void setLayerToActive(int index); void setLayerActive(int index);
/*! /*!
* \brief The setAlphaOfLayer method sets the alpha value of a specific layer * \brief The setAlphaOfLayer method sets the alpha value of a specific layer
* \param index - Index of the layer where the change should be applied * \param index - Index of the layer where the change should be applied
* \param alpha - New alpha value of the layer * \param alpha - New alpha value of the layer
*/ */
void setAlphaOfLayer(int index, int alpha); void setLayerAlpha(int index, int alpha);
/*! /*!
* \brief The floodFill method fills a the active layer with a given color * \brief The floodFill method fills a the active layer with a given color
* \param r - Red value of the color the layer should be filled with * \param r - Red value of the color the layer should be filled with