Right missing right click on QgsColorButtonV2

This commit is contained in:
Nathan Woodrow 2015-02-10 21:02:03 +10:00
parent 27bf440eac
commit 04c37f960e

View File

@ -172,7 +172,12 @@ void QgsColorButtonV2::mousePressEvent( QMouseEvent *e )
return;
}
if ( e->button() == Qt::LeftButton )
if ( e->button() == Qt::RightButton )
{
QToolButton::showMenu();
return;
}
else if ( e->button() == Qt::LeftButton )
{
mDragStartPosition = e->pos();
}