mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Refractored fileName to more intuitive filePath
This commit is contained in:
@@ -11,12 +11,12 @@ IntelliImage::~IntelliImage(){
|
||||
|
||||
}
|
||||
|
||||
bool IntelliImage::loadImage(const QString &fileName){
|
||||
bool IntelliImage::loadImage(const QString &filePath){
|
||||
// Holds the image
|
||||
QImage loadedImage;
|
||||
|
||||
// If the image wasn't loaded leave this function
|
||||
if (!loadedImage.load(fileName))
|
||||
if (!loadedImage.load(filePath))
|
||||
return false;
|
||||
|
||||
// scaled Image to size of Layer
|
||||
|
||||
@@ -116,10 +116,10 @@ virtual std::vector<QPoint> getPolygonData(){
|
||||
|
||||
/*!
|
||||
* \brief A function that loads and sclaes an image to the fitting dimensions.
|
||||
* \param fileName - The path+name of the image which to loaded.
|
||||
* \param filePath - The path+name of the image which to loaded.
|
||||
* \return True if the image could be loaded, false otherwise.
|
||||
*/
|
||||
virtual bool loadImage(const QString &fileName);
|
||||
virtual bool loadImage(const QString &filePath);
|
||||
|
||||
/*!
|
||||
* \brief A function that returns the pixelcolor at a certain point
|
||||
|
||||
Reference in New Issue
Block a user