diff --git a/gui/applicationlist.cpp b/gui/applicationlist.cpp index 4a52a0694..2a38831ca 100644 --- a/gui/applicationlist.cpp +++ b/gui/applicationlist.cpp @@ -59,12 +59,12 @@ void ApplicationList::SaveSettings(QSettings &programSettings) } -int ApplicationList::GetApplicationCount() +int ApplicationList::GetApplicationCount() const { return mApplications.size(); } -QString ApplicationList::GetApplicationName(const int index) +QString ApplicationList::GetApplicationName(const int index) const { if (index >= 0 && index < mApplications.size()) { @@ -74,7 +74,7 @@ QString ApplicationList::GetApplicationName(const int index) return QString(); } -QString ApplicationList::GetApplicationPath(const int index) +QString ApplicationList::GetApplicationPath(const int index) const { if (index >= 0 && index < mApplications.size()) { diff --git a/gui/applicationlist.h b/gui/applicationlist.h index ed1edfd15..2301bb2a5 100644 --- a/gui/applicationlist.h +++ b/gui/applicationlist.h @@ -84,7 +84,7 @@ public: * @brief Get the amount of applications in the list * @return The count of applications */ - int GetApplicationCount(); + int GetApplicationCount() const; /** * @brief Get spesific application's name @@ -92,7 +92,7 @@ public: * @param index Index of the application whose name to get * @return Name of the application */ - QString GetApplicationName(const int index); + QString GetApplicationName(const int index) const; /** * @brief Get Application's path @@ -100,7 +100,7 @@ public: * @param index of the application whose path to get * @return Application's path */ - QString GetApplicationPath(const int index); + QString GetApplicationPath(const int index) const; /** * @brief Modify an application