Open desktop message avatars only after a completed click
This commit is contained in:
1 parent
7d69404532
commit
1f9dbd9dea
2 files changed
+12
-2
No files matched your search
@@ -4,6 +4,7 @@
|
||||
#include <cstdint>
|
||||
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QPersistentModelIndex>
|
||||
#include <functional>
|
||||
|
||||
enum MessageDataRole {
|
||||
@@ -111,6 +112,8 @@ private:
|
||||
|
||||
std::function<void(const QString&)> m_videoOpenCb;
|
||||
std::function<void(const QString&)> m_imageOpenCb;
|
||||
QPersistentModelIndex m_avatarPress;
|
||||
QPoint m_avatarPressPosition;
|
||||
std::function<bool(const QModelIndex&)> m_downloadCb;
|
||||
|
||||
Layout calcLayout(const QStyleOptionViewItem &option,
|
||||
|
||||
Reference in new issue
Block a user