Fix separator.
This commit is contained in:
parent
2e4fed72fe
commit
f53bdaae89
|
@ -1,6 +1,8 @@
|
|||
#include "manager.h"
|
||||
#include "wintoastlib.h"
|
||||
|
||||
#include <QDir>
|
||||
|
||||
using namespace WinToastLib;
|
||||
|
||||
class CustomHandler : public IWinToastHandler {
|
||||
|
@ -62,8 +64,9 @@ void NotificationsManager::postNotification(
|
|||
WinToastTemplate::FirstLine);
|
||||
templ.setTextField(QString("%1").arg(text).toStdWString(),
|
||||
WinToastTemplate::SecondLine);
|
||||
|
||||
templ.setImagePath(
|
||||
reinterpret_cast<const wchar_t *>(iconPath.toLocalFile().utf16()));
|
||||
reinterpret_cast<const wchar_t *>(QDir::toNativeSeparators(iconPath.toLocalFile()).utf16()));
|
||||
|
||||
count++;
|
||||
CustomHandler *customHandler = new CustomHandler(count, this);
|
||||
|
|
|
@ -83,13 +83,11 @@ void RoomListModel::connectRoomSignals(SpectralRoom* room) {
|
|||
User* sender = room->user(event->senderId());
|
||||
if (sender == room->localUser()) return;
|
||||
QUrl _url = room->avatarUrl();
|
||||
qDebug() << QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
|
||||
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png";
|
||||
emit newMessage(
|
||||
room->id(), event->id(), room->displayName(), sender->displayname(),
|
||||
event->contentJson().value("body").toString(), room->avatar(128),
|
||||
QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
|
||||
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png");
|
||||
QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) +
|
||||
"/avatar/" + _url.authority() + '_' + _url.fileName() + ".png"));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue