diff options
Diffstat (limited to 'include/timeline/widgets/ImageItem.h')
-rw-r--r-- | include/timeline/widgets/ImageItem.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/timeline/widgets/ImageItem.h b/include/timeline/widgets/ImageItem.h index c4f6998a..931c17dd 100644 --- a/include/timeline/widgets/ImageItem.h +++ b/include/timeline/widgets/ImageItem.h @@ -22,19 +22,16 @@ #include <QSharedPointer> #include <QWidget> -#include "Image.h" -#include "MatrixClient.h" -#include "MessageEvent.h" +#include <mtx.hpp> -namespace events = matrix::events; -namespace msgs = matrix::events::messages; +#include "MatrixClient.h" class ImageItem : public QWidget { Q_OBJECT public: ImageItem(QSharedPointer<MatrixClient> client, - const events::MessageEvent<msgs::Image> &event, + const mtx::events::RoomEvent<mtx::events::msg::Image> &event, QWidget *parent = nullptr); ImageItem(QSharedPointer<MatrixClient> client, @@ -72,7 +69,7 @@ private: int bottom_height_ = 30; - events::MessageEvent<msgs::Image> event_; + mtx::events::RoomEvent<mtx::events::msg::Image> event_; QSharedPointer<MatrixClient> client_; }; |