Display conversation images

This commit is contained in:
2018-12-19 08:49:54 +01:00
parent 9100c14dfd
commit 6062eaf2c8
5 changed files with 51 additions and 13 deletions

View File

@ -50,6 +50,11 @@ QString ConversationMessage::imagePath() const
return mImagePath;
}
bool ConversationMessage::hasImage() const
{
return !mImagePath.isEmpty();
}
void ConversationMessage::setImagePath(const QString &imagePath)
{
mImagePath = imagePath;

View File

@ -27,6 +27,7 @@ public:
void setMessage(const QString &message);
QString imagePath() const;
bool hasImage() const;
void setImagePath(const QString &imagePath);
bool operator<(const ConversationMessage &b) const;