There were fixed typos

This commit is contained in:
Alex 2023-04-13 16:21:36 +03:00
parent 7491594379
commit 7b5ec8f63f
4 changed files with 7 additions and 9 deletions

View File

@ -44,8 +44,7 @@ void HistoryNotificationsModel::addHistoryObject(const QmlNotificationService::N
endInsertRows(); endInsertRows();
} }
void HistoryNotificationsModel::setHistory(const QList<QmlNotificationService::NotificationData> &historyList) void HistoryNotificationsModel::setHistory(const QList<QmlNotificationService::NotificationData> &historyList) {
{
notificationsList = std::move(historyList); notificationsList = std::move(historyList);
} }

View File

@ -24,9 +24,9 @@ QString NotificationData::text() const {
QString NotificationData::img() const { QString NotificationData::img() const {
const QString imageSrc = imgSrc(); const QString imageSrc = imgSrc();
if(imageSrc != "") if(imageSrc.size())
return imageSrc; return imageSrc;
else
return this->getDefaultImage(_type); return this->getDefaultImage(_type);
} }

View File

@ -38,8 +38,8 @@ public:
Q_INVOKABLE QString text() const; Q_INVOKABLE QString text() const;
/** /**
* @brief img This method return url to image of a question/notification object. * @brief img This method return url to image of a question/notification object if it exisis or return url of default question/notification image.
* @return url of image. * @return url of image or url of default image.
*/ */
Q_INVOKABLE QString img() const; Q_INVOKABLE QString img() const;

View File

@ -6,7 +6,6 @@
#include <QHash> #include <QHash>
#include <QObject> #include <QObject>
#include <QSharedPointer>
#include <QQmlEngine> #include <QQmlEngine>
namespace QmlNotificationService { namespace QmlNotificationService {