mirror of
https://github.com/QuasarApp/SimpleQmlNotify.git
synced 2025-04-25 21:24:34 +00:00
There were fixed typos
This commit is contained in:
parent
7491594379
commit
7b5ec8f63f
@ -44,8 +44,7 @@ void HistoryNotificationsModel::addHistoryObject(const QmlNotificationService::N
|
||||
endInsertRows();
|
||||
}
|
||||
|
||||
void HistoryNotificationsModel::setHistory(const QList<QmlNotificationService::NotificationData> &historyList)
|
||||
{
|
||||
void HistoryNotificationsModel::setHistory(const QList<QmlNotificationService::NotificationData> &historyList) {
|
||||
notificationsList = std::move(historyList);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (C) 2018-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
@ -24,10 +24,10 @@ QString NotificationData::text() const {
|
||||
|
||||
QString NotificationData::img() const {
|
||||
const QString imageSrc = imgSrc();
|
||||
if(imageSrc != "")
|
||||
if(imageSrc.size())
|
||||
return imageSrc;
|
||||
else
|
||||
return this->getDefaultImage(_type);
|
||||
|
||||
return this->getDefaultImage(_type);
|
||||
}
|
||||
|
||||
QString NotificationData::imgSrc() const
|
||||
|
@ -38,8 +38,8 @@ public:
|
||||
Q_INVOKABLE QString text() const;
|
||||
|
||||
/**
|
||||
* @brief img This method return url to image of a question/notification object.
|
||||
* @return url of image.
|
||||
* @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 or url of default image.
|
||||
*/
|
||||
Q_INVOKABLE QString img() const;
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
#include <QHash>
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
#include <QQmlEngine>
|
||||
|
||||
namespace QmlNotificationService {
|
||||
|
Loading…
x
Reference in New Issue
Block a user