From ab8590c4fe16a7c5d0baefcda7ddc2d20fb34448 Mon Sep 17 00:00:00 2001 From: Conrad Date: Fri, 20 Dec 2019 09:15:02 +0100 Subject: [PATCH] Refractored fileName to more intuitive filePath --- src/Image/IntelliImage.cpp | 4 ++-- src/Image/IntelliImage.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Image/IntelliImage.cpp b/src/Image/IntelliImage.cpp index 059fe4c..4254f63 100644 --- a/src/Image/IntelliImage.cpp +++ b/src/Image/IntelliImage.cpp @@ -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 diff --git a/src/Image/IntelliImage.h b/src/Image/IntelliImage.h index 12f965b..1dce011 100644 --- a/src/Image/IntelliImage.h +++ b/src/Image/IntelliImage.h @@ -116,10 +116,10 @@ virtual std::vector 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