Refractored fileName to more intuitive filePath

This commit is contained in:
2019-12-20 09:15:02 +01:00
parent 0411c49534
commit ab8590c4fe
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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