[gui] Data defined override: middle-click to open exp dialog

This commit is contained in:
Andrea Giudiceandrea 2024-03-03 18:06:41 +01:00 committed by Nyall Dawson
parent f5e3a358fc
commit 782ff19a86

View File

@ -263,6 +263,13 @@ void QgsPropertyOverrideButton::mouseReleaseEvent( QMouseEvent *event )
return;
}
// Middle button click to open the Expression Builder dialog
if ( event->button() == Qt::MiddleButton )
{
showExpressionDialog();
return;
}
// pass to default behavior
QToolButton::mousePressEvent( event );
}