single click distinguish with double click

This commit is contained in:
xiaoyifang 2021-12-10 21:58:13 +08:00 committed by yifang
parent 608f39244e
commit 8f4f3a3766

View file

@ -61,7 +61,6 @@ bool ArticleWebView::eventFilter(QObject *obj, QEvent *ev)
QTimer::singleShot(QApplication::doubleClickInterval(),this,[=](){ QTimer::singleShot(QApplication::doubleClickInterval(),this,[=](){
singleClickAction(pe); singleClickAction(pe);
}); });
return true;
} }
else{ else{
doubleClickAction(pe); doubleClickAction(pe);