1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[ToolButton] Emit doubleClicked only on left mouse double click

This commit is contained in:
nowrep 2014-01-01 15:42:13 +01:00
parent fecb681d24
commit cf5abaddb0

View File

@ -154,7 +154,9 @@ void ToolButton::mouseDoubleClickEvent(QMouseEvent* e)
{
QToolButton::mouseDoubleClickEvent(e);
emit doubleClicked();
if (e->button() == Qt::LeftButton) {
emit doubleClicked();
}
}
void ToolButton::showMenu()