Commit e1f1093d authored by Laurent Montel's avatar Laurent Montel 😁

it marks as deprecated in qt5.15 branch

(cherry picked from commit 5a3dd731)
parent 661dd270
Pipeline #32865 passed with stage
in 19 minutes and 38 seconds
......@@ -279,7 +279,7 @@ void AddresseeLineEdit::mouseReleaseEvent(QMouseEvent *event)
if (d->useCompletion()
&& QApplication::clipboard()->supportsSelection()
&& !isReadOnly()
&& event->button() == Qt::MidButton) {
&& event->button() == Qt::MiddleButton) {
d->setSmartPaste(true);
}
#endif
......@@ -699,7 +699,7 @@ bool AddresseeLineEdit::eventFilter(QObject *object, QEvent *event)
const Qt::MouseButtons buttons = mouseEvent->buttons();
if (event->type() == QEvent::MouseButtonPress
|| event->type() == QEvent::MouseButtonDblClick
|| buttons & Qt::LeftButton || buttons & Qt::MidButton
|| buttons & Qt::LeftButton || buttons & Qt::MiddleButton
|| buttons & Qt::RightButton) {
if (itemIsHeader(item)) {
return true; // eat the event, we don't want anything to happen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment