Skip to content
Permalink
Browse files

Allow setting alpha channel for custom color palette

  • Loading branch information
nyalldawson committed Aug 14, 2014
1 parent b3dbe74 commit a31e3f5d027ae87510371c6efdad4d8a3ac2174b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsoptions.cpp
@@ -2107,7 +2107,7 @@ void QgsOptions::saveDefaultDatumTransformations()

void QgsOptions::on_mButtonAddColor_clicked()
{
QColor newColor = QColorDialog::getColor( QColor(), this->parentWidget(), tr( "Select color" ) );
QColor newColor = QColorDialog::getColor( QColor(), this->parentWidget(), tr( "Select color" ), QColorDialog::ShowAlphaChannel );
if ( !newColor.isValid() )
{
return;
@@ -2140,7 +2140,7 @@ void QgsOptions::on_mTreeCustomColors_itemDoubleClicked( QTreeWidgetItem* item,
{
if ( column == 0 )
{
QColor newColor = QColorDialog::getColor( item->data( 0, PaletteColorRole ).value<QColor>(), this->parentWidget(), tr( "Select color" ) );
QColor newColor = QColorDialog::getColor( item->data( 0, PaletteColorRole ).value<QColor>(), this->parentWidget(), tr( "Select color" ), QColorDialog::ShowAlphaChannel );
if ( !newColor.isValid() )
{
return;

0 comments on commit a31e3f5

Please sign in to comment.
You can’t perform that action at this time.