mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Restore cancel button in color dialog when used from layer properties
This commit is contained in:
parent
993aa842fb
commit
5ac34ce86b
@ -94,10 +94,10 @@ const QPixmap& QgsColorButton::transparentBackground()
|
||||
|
||||
void QgsColorButton::showColorDialog()
|
||||
{
|
||||
if ( QgsPanelWidget* panel = QgsPanelWidget::findParentPanel( this ) )
|
||||
QgsPanelWidget* panel = QgsPanelWidget::findParentPanel( this );
|
||||
if ( panel && panel->dockMode() )
|
||||
{
|
||||
QgsCompoundColorWidget* colorWidget = new QgsCompoundColorWidget( panel, color(), panel->dockMode() ? QgsCompoundColorWidget::LayoutVertical :
|
||||
QgsCompoundColorWidget::LayoutDefault );
|
||||
QgsCompoundColorWidget* colorWidget = new QgsCompoundColorWidget( panel, color(), QgsCompoundColorWidget::LayoutVertical );
|
||||
colorWidget->setPanelTitle( mColorDialogTitle );
|
||||
colorWidget->setAllowAlpha( mAllowAlpha );
|
||||
connect( colorWidget, SIGNAL( currentColorChanged( QColor ) ), this, SLOT( setValidTemporaryColor( QColor ) ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user