mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 04:40:37 +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
|
// Holds the image
|
||||||
QImage loadedImage;
|
QImage loadedImage;
|
||||||
|
|
||||||
// If the image wasn't loaded leave this function
|
// If the image wasn't loaded leave this function
|
||||||
if (!loadedImage.load(fileName))
|
if (!loadedImage.load(filePath))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// scaled Image to size of Layer
|
// 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.
|
* \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.
|
* \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
|
* \brief A function that returns the pixelcolor at a certain point
|
||||||
|
|||||||
Reference in New Issue
Block a user