@@ -110,9 +110,9 @@ void QgsSimpleLineSymbolLayerV2Widget::colorChanged()
110110 // Native Mac dialog works only for Qt Carbon
111111 // Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
112112 // FIXME need to also check max QT_VERSION when Qt bug fixed
113- QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog );
113+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
114114#else
115- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
115+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
116116#endif
117117 if ( !color.isValid () )
118118 return ;
@@ -259,9 +259,9 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setColorBorder()
259259 // Native Mac dialog works only for Qt Carbon
260260 // Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
261261 // FIXME need to also check max QT_VERSION when Qt bug fixed
262- QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::DontUseNativeDialog );
262+ QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
263263#else
264- QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this );
264+ QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::ShowAlphaChannel );
265265#endif
266266 if ( !borderColor.isValid () )
267267 return ;
@@ -276,9 +276,9 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setColorFill()
276276 // Native Mac dialog works only for Qt Carbon
277277 // Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
278278 // FIXME need to also check max QT_VERSION when Qt bug fixed
279- QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog );
279+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
280280#else
281- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
281+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
282282#endif
283283 if ( !color.isValid () )
284284 return ;
@@ -357,9 +357,9 @@ void QgsSimpleFillSymbolLayerV2Widget::setColor()
357357 // Native Mac dialog works only for Qt Carbon
358358 // Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
359359 // FIXME need to also check max QT_VERSION when Qt bug fixed
360- QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog );
360+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
361361#else
362- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
362+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
363363#endif
364364 if ( !color.isValid () )
365365 return ;
@@ -374,9 +374,9 @@ void QgsSimpleFillSymbolLayerV2Widget::setBorderColor()
374374 // Native Mac dialog works only for Qt Carbon
375375 // Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
376376 // FIXME need to also check max QT_VERSION when Qt bug fixed
377- QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::DontUseNativeDialog );
377+ QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::DontUseNativeDialog | QColorDialog::ShowAlphaChannel );
378378#else
379- QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this );
379+ QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::ShowAlphaChannel );
380380#endif
381381 if ( !color.isValid () )
382382 return ;
0 commit comments