forked from blue/squawk
first successfull attempt to visualize selection on message body
This commit is contained in:
parent
c3a45ec58c
commit
0340db7f2f
4 changed files with 92 additions and 42 deletions
|
@ -59,6 +59,8 @@ public:
|
|||
void beginClearWidgets();
|
||||
void leftClick(const QPoint& point, const QModelIndex& index, const QRect& sizeHint) const;
|
||||
bool isAnchorHovered(const QPoint& point, const QModelIndex& index, const QRect& sizeHint) const;
|
||||
bool mouseDrag(const QPoint& start, const QPoint& end, const QModelIndex& index, const QRect& sizeHint);
|
||||
QString clearSelection();
|
||||
|
||||
static int avatarHeight;
|
||||
static int margin;
|
||||
|
@ -116,7 +118,8 @@ private:
|
|||
std::map<QString, Preview*>* previews;
|
||||
std::set<QString>* idsToKeep;
|
||||
bool clearingWidgets;
|
||||
|
||||
QString currentId;
|
||||
std::pair<int, int> selection;
|
||||
};
|
||||
|
||||
#endif // MESSAGEDELEGATE_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue