Reply in replies by double click.
This commit is contained in:
parent
17549ad5ea
commit
9fe82480e1
|
@ -1614,6 +1614,17 @@ void ListWidget::keyPressEvent(QKeyEvent *e) {
|
||||||
void ListWidget::mouseDoubleClickEvent(QMouseEvent *e) {
|
void ListWidget::mouseDoubleClickEvent(QMouseEvent *e) {
|
||||||
mouseActionStart(e->globalPos(), e->button());
|
mouseActionStart(e->globalPos(), e->button());
|
||||||
trySwitchToWordSelection();
|
trySwitchToWordSelection();
|
||||||
|
if (!ClickHandler::getActive()
|
||||||
|
&& !ClickHandler::getPressed()
|
||||||
|
&& (_mouseCursorState == CursorState::None
|
||||||
|
|| _mouseCursorState == CursorState::Date)
|
||||||
|
&& _selected.empty()
|
||||||
|
&& (_mouseAction != MouseAction::Selecting)
|
||||||
|
&& _overElement
|
||||||
|
&& IsServerMsgId(_overElement->data()->id)) {
|
||||||
|
mouseActionCancel();
|
||||||
|
replyToMessageRequestNotify(_overElement->data()->fullId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListWidget::trySwitchToWordSelection() {
|
void ListWidget::trySwitchToWordSelection() {
|
||||||
|
|
Loading…
Reference in New Issue