mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 20:30:32 +02:00
Automated Release Preparation
This commit is contained in:
@@ -332,15 +332,15 @@ void PaintingArea::paintEvent(QPaintEvent*event){
|
||||
|
||||
void PaintingArea::selectLayerUp(){
|
||||
updateTools();
|
||||
if(activeLayer != -1 && static_cast<size_t>(activeLayer)<layerBundle.size() - 1) {
|
||||
std::swap(layerBundle[static_cast<size_t>(activeLayer)], layerBundle[static_cast<size_t>(activeLayer + 1)]);
|
||||
if(activeLayer != -1 && static_cast<size_t>(activeLayer)<layerBundle.size() - 1) {
|
||||
std::swap(layerBundle[static_cast<size_t>(activeLayer)], layerBundle[static_cast<size_t>(activeLayer + 1)]);
|
||||
activeLayer++;
|
||||
}
|
||||
}
|
||||
|
||||
void PaintingArea::selectLayerDown(){
|
||||
updateTools();
|
||||
if(activeLayer>0) {
|
||||
if(activeLayer>0) {
|
||||
std::swap(layerBundle[static_cast<unsigned long long>(activeLayer)], layerBundle[static_cast<unsigned long long>(activeLayer - 1)]);
|
||||
activeLayer--;
|
||||
}
|
||||
|
||||
@@ -21,29 +21,29 @@ class UnitTest;
|
||||
* \brief The LayerObject struct holds all the information needed to construct a layer
|
||||
*/
|
||||
struct LayerObject {
|
||||
/*!
|
||||
* \brief image - Stores the imageData of the current LayerObject.
|
||||
*/
|
||||
/*!
|
||||
* \brief image - Stores the imageData of the current LayerObject.
|
||||
*/
|
||||
IntelliImage* image;
|
||||
/*!
|
||||
* \brief width - Stores the width of a layer in pixels.
|
||||
*/
|
||||
/*!
|
||||
* \brief width - Stores the width of a layer in pixels.
|
||||
*/
|
||||
int width;
|
||||
/*!
|
||||
* \brief height - Stores the height of a layer in pixels.
|
||||
*/
|
||||
/*!
|
||||
* \brief height - Stores the height of a layer in pixels.
|
||||
*/
|
||||
int height;
|
||||
/*!
|
||||
* \brief widthOffset - Stores the number of pixles from the left side of the painting area.
|
||||
*/
|
||||
/*!
|
||||
* \brief widthOffset - Stores the number of pixles from the left side of the painting area.
|
||||
*/
|
||||
int widthOffset;
|
||||
/*!
|
||||
* \brief heightOffset - Stores the number of pixles from the top of the painting area.
|
||||
*/
|
||||
/*!
|
||||
* \brief heightOffset - Stores the number of pixles from the top of the painting area.
|
||||
*/
|
||||
int heightOffset;
|
||||
/*!
|
||||
* \brief alpha - Stores the alpha value of the layer (default=255).
|
||||
*/
|
||||
/*!
|
||||
* \brief alpha - Stores the alpha value of the layer (default=255).
|
||||
*/
|
||||
int alpha = 255;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user