Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[color button] add colour wheel to right click menu
- Loading branch information
Showing
with
9 additions
and
0 deletions.
-
+9
−0
src/gui/qgscolorbuttonv2.cpp
|
@@ -408,6 +408,15 @@ void QgsColorButtonV2::prepareMenu() |
|
|
connect( noColorAction, SIGNAL( triggered() ), this, SLOT( setToNoColor() ) ); |
|
|
} |
|
|
|
|
|
mMenu->addSeparator(); |
|
|
QgsColorWheel* colorWheel = new QgsColorWheel( mMenu ); |
|
|
colorWheel->setColor( color() ); |
|
|
QgsColorWidgetAction* colorAction = new QgsColorWidgetAction( colorWheel, mMenu, mMenu ); |
|
|
colorAction->setDismissOnColorSelection( false ); |
|
|
connect( colorAction, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( setColor( const QColor& ) ) ); |
|
|
mMenu->addAction( colorAction ); |
|
|
|
|
|
|
|
|
if ( mColorSchemeRegistry ) |
|
|
{ |
|
|
//get schemes with ShowInColorButtonMenu flag set |
|
|