Skip to content

Commit 04c37f9

Browse files
committedFeb 10, 2015
Right missing right click on QgsColorButtonV2
1 parent 27bf440 commit 04c37f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/gui/qgscolorbuttonv2.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,12 @@ void QgsColorButtonV2::mousePressEvent( QMouseEvent *e )
172172
return;
173173
}
174174

175-
if ( e->button() == Qt::LeftButton )
175+
if ( e->button() == Qt::RightButton )
176+
{
177+
QToolButton::showMenu();
178+
return;
179+
}
180+
else if ( e->button() == Qt::LeftButton )
176181
{
177182
mDragStartPosition = e->pos();
178183
}

0 commit comments

Comments
 (0)
Failed to load comments.