chatgui: MsgIsOutgoingRole support for outgoing message alignment
This commit is contained in:
1 parent
fbc1bff1e1
commit
e8920fe00e
5 files changed
+198
-33
No files matched your search
@@ -13,6 +13,7 @@ enum MessageDataRole {
|
||||
MsgQuoteTextRole = Qt::UserRole + 8,
|
||||
MsgReactionsRole = Qt::UserRole + 9,
|
||||
MsgIdRole = Qt::UserRole + 10,
|
||||
MsgIsOutgoingRole = Qt::UserRole + 11,
|
||||
};
|
||||
|
||||
class MessageDelegate : public QStyledItemDelegate {
|
||||
@@ -40,6 +41,10 @@ private:
|
||||
QRect statusRect;
|
||||
int totalHeight;
|
||||
bool narrow = false;
|
||||
bool emojiOnly = false;
|
||||
int emojiCount = 0;
|
||||
QRect emojiArea;
|
||||
bool isOutgoing = false;
|
||||
};
|
||||
|
||||
Layout calcLayout(const QStyleOptionViewItem &option,
|
||||
|
||||
Reference in new issue
Block a user