@@ -110,9 +110,9 @@ void QgsSimpleLineSymbolLayerV2Widget::colorChanged()
110
110
// Native Mac dialog works only for Qt Carbon
111
111
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
112
112
// 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 );
114
114
#else
115
- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
115
+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
116
116
#endif
117
117
if ( !color.isValid () )
118
118
return ;
@@ -259,9 +259,9 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setColorBorder()
259
259
// Native Mac dialog works only for Qt Carbon
260
260
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
261
261
// 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 );
263
263
#else
264
- QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this );
264
+ QColor borderColor = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::ShowAlphaChannel );
265
265
#endif
266
266
if ( !borderColor.isValid () )
267
267
return ;
@@ -276,9 +276,9 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setColorFill()
276
276
// Native Mac dialog works only for Qt Carbon
277
277
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
278
278
// 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 );
280
280
#else
281
- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
281
+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
282
282
#endif
283
283
if ( !color.isValid () )
284
284
return ;
@@ -357,9 +357,9 @@ void QgsSimpleFillSymbolLayerV2Widget::setColor()
357
357
// Native Mac dialog works only for Qt Carbon
358
358
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
359
359
// 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 );
361
361
#else
362
- QColor color = QColorDialog::getColor ( mLayer ->color (), this );
362
+ QColor color = QColorDialog::getColor ( mLayer ->color (), this , " " , QColorDialog::ShowAlphaChannel );
363
363
#endif
364
364
if ( !color.isValid () )
365
365
return ;
@@ -374,9 +374,9 @@ void QgsSimpleFillSymbolLayerV2Widget::setBorderColor()
374
374
// Native Mac dialog works only for Qt Carbon
375
375
// Qt bug: http://bugreports.qt.nokia.com/browse/QTBUG-14889
376
376
// 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 );
378
378
#else
379
- QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this );
379
+ QColor color = QColorDialog::getColor ( mLayer ->borderColor (), this , " " , QColorDialog::ShowAlphaChannel );
380
380
#endif
381
381
if ( !color.isValid () )
382
382
return ;
0 commit comments