Use ImageItem in MessageDelegate.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "controller.h"
|
||||
|
||||
#include "matriqueroom.h"
|
||||
#include "matriqueuser.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "events/eventcontent.h"
|
||||
@@ -39,6 +40,7 @@ Controller::Controller(QObject* parent) : QObject(parent) {
|
||||
tray->show();
|
||||
|
||||
Connection::setRoomType<MatriqueRoom>();
|
||||
Connection::setUserType<MatriqueUser>();
|
||||
|
||||
QTimer::singleShot(0, this, SLOT(invokeLogin()));
|
||||
}
|
||||
@@ -215,3 +217,8 @@ void Controller::showMessage(const QString& title, const QString& msg,
|
||||
const QIcon& icon) {
|
||||
tray->showMessage(title, msg, icon);
|
||||
}
|
||||
|
||||
QImage Controller::safeImage(QImage image) {
|
||||
if (image.isNull()) return QImage();
|
||||
return image;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user