mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Added initial ability to handle middle button in peer lists.
This commit is contained in:
parent
5df2a048e1
commit
ce4a081155
2 changed files with 6 additions and 0 deletions
|
@ -1680,6 +1680,10 @@ void PeerListContent::mousePressReleased(Qt::MouseButton button) {
|
|||
_controller->rowClicked(row);
|
||||
}
|
||||
}
|
||||
} else if (button == Qt::MiddleButton && pressed == _selected) {
|
||||
if (auto row = getRow(pressed.index)) {
|
||||
_controller->rowMiddleClicked(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -482,6 +482,8 @@ public:
|
|||
}
|
||||
|
||||
virtual void rowClicked(not_null<PeerListRow*> row) = 0;
|
||||
virtual void rowMiddleClicked(not_null<PeerListRow*> row) {
|
||||
}
|
||||
virtual void rowRightActionClicked(not_null<PeerListRow*> row) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue