diff options
author | link2xt <link2xt@testrun.org> | 2021-02-22 02:10:02 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-02-22 02:10:02 +0300 |
commit | 14d8dea44d81b365477263aa0087e3a7c633ae15 (patch) | |
tree | 35bffc737b3aa50d6465a29d615f2470f8b90c8c | |
parent | 8f776c9340e7bd68e90b5ef66577eb007ef9b736 (diff) | |
download | kdeltachat-14d8dea44d81b365477263aa0087e3a7c633ae15.tar.gz kdeltachat-14d8dea44d81b365477263aa0087e3a7c633ae15.zip |
Uncomment DcChat::getProfileImage
-rw-r--r-- | chat.cpp | 7 | ||||
-rw-r--r-- | chat.h | 2 |
2 files changed, 5 insertions, 4 deletions
@@ -37,13 +37,14 @@ DcChat::getName() return result; } -/* QString DcChat::getProfileImage() { - char *profileImage = dc_chat_get_profile_image(m_chat); + char *profileImage = dc_chat_get_profile_image(m_chat); + QString result{profileImage}; + dc_str_unref(profileImage); + return result; } -*/ QColor DcChat::getColor() @@ -20,7 +20,7 @@ public: Q_INVOKABLE uint32_t getId(); Q_INVOKABLE int getType(); Q_INVOKABLE QString getName(); - // Q_INVOKABLE QString getProfileImage(); + Q_INVOKABLE QString getProfileImage(); Q_INVOKABLE QColor getColor(); Q_INVOKABLE bool canSend(); Q_INVOKABLE bool isMuted(); |