Skip to content

Commit

Permalink
Allow setting alpha channel for custom color palette
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 14, 2014
1 parent b3dbe74 commit a31e3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsoptions.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a31e3f5

Please sign in to comment.