mirror of
https://github.com/QuasarApp/SimpleQmlNotify.git
synced 2025-04-27 06:04:33 +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();
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QSharedPointer>
|
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
|
|
||||||
namespace QmlNotificationService {
|
namespace QmlNotificationService {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user