mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 11:50:31 +02:00
Ran Uncrustify Again
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user