Ran Uncrustify Again

This commit is contained in:
2020-01-09 10:18:28 +01:00
parent ee64fa6997
commit d4313e29a0
21 changed files with 428 additions and 428 deletions

View File

@@ -17,7 +17,7 @@ bool IntelliImage::loadImage(const QString &filePath){
QImage loadedImage;
// If the image wasn't loaded leave this function
if (!loadedImage.load(filePath))
if (!loadedImage.load(filePath))
return false;
// scaled Image to size of Layer
@@ -83,5 +83,5 @@ QColor IntelliImage::getPixelColor(QPoint& point){
}
QImage IntelliImage::getImageData(){
return imageData;
return imageData;
}

View File

@@ -24,8 +24,8 @@ public:
* \brief The Types, which an Image can be.
*/
enum class ImageType {
RASTERIMAGE,
SHAPEDIMAGE
RASTERIMAGE,
SHAPEDIMAGE
};
protected:
@@ -125,7 +125,7 @@ virtual std::vector<QPoint> getPolygonData(){
}
virtual ImageType getTypeOfImage(){
return TypeOfImage;
return TypeOfImage;
}
/*!

View File

@@ -5,7 +5,7 @@
IntelliRasterImage::IntelliRasterImage(int weight, int height)
: IntelliImage(weight, height){
TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
}
IntelliRasterImage::~IntelliRasterImage(){
@@ -15,7 +15,7 @@ IntelliRasterImage::~IntelliRasterImage(){
IntelliImage* IntelliRasterImage::getDeepCopy(){
IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height());
raster->imageData.fill(Qt::transparent);
raster->TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
raster->TypeOfImage = IntelliImage::ImageType::RASTERIMAGE;
return raster;
}

View File

@@ -6,7 +6,7 @@
IntelliShapedImage::IntelliShapedImage(int weight, int height)
: IntelliRasterImage(weight, height){
TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
}
IntelliShapedImage::~IntelliShapedImage(){
@@ -21,7 +21,7 @@ IntelliImage* IntelliShapedImage::getDeepCopy(){
IntelliShapedImage* shaped = new IntelliShapedImage(imageData.width(), imageData.height());
shaped->setPolygon(this->polygonData);
shaped->imageData.fill(Qt::transparent);
shaped->TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
shaped->TypeOfImage = IntelliImage::ImageType::SHAPEDIMAGE;
return shaped;
}