Skip to content

Commit fce899a

Browse files
author
timlinux
committed
Applied patch from JCTull - show no pen and no fill as second entry in lists for symbology. Thanks. Closes #3557
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15377 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2bafd79 commit fce899a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/qgssinglesymboldialog.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,17 @@ void QgsSingleSymbolDialog::refreshMarkers()
180180
//set outline / line style
181181
//
182182
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "SolidLine" ) ), "", "SolidLine" );
183+
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "NoPen" ) ), tr( "None" ), "NoPen" );
183184
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashLine" ) ), "", "DashLine" );
184185
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DotLine" ) ), "", "DotLine" );
185186
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashDotLine" ) ), "" , "DashDotLine" );
186187
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashDotDotLine" ) ), "", "DashDotDotLine" );
187-
cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "NoPen" ) ), tr( "None" ), "NoPen" );
188188

189189
//
190190
//set pattern icons and state
191191
//
192192
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "SolidPattern" ) ), "", "SolidPattern" );
193+
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "NoBrush" ) ), tr( "None" ), "NoBrush" );
193194
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "HorPattern" ) ), "", "HorPattern" );
194195
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "VerPattern" ) ), "", "VerPattern" );
195196
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "CrossPattern" ) ), "", "CrossPattern" );
@@ -203,7 +204,6 @@ void QgsSingleSymbolDialog::refreshMarkers()
203204
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense5Pattern" ) ), "", "Dense5Pattern" );
204205
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense6Pattern" ) ), "", "Dense6Pattern" );
205206
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense7Pattern" ) ), "", "Dense7Pattern" );
206-
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "NoBrush" ) ), tr( "None" ), "NoBrush" );
207207
cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "TexturePattern" ) ), tr( "Texture" ), "TexturePattern" );
208208

209209
if ( mVectorLayer && mVectorLayer->geometryType() != QGis::Point )

src/gui/symbology-ng/qgsbrushstylecombobox.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ QgsBrushStyleComboBox::QgsBrushStyleComboBox( QWidget* parent )
1313
{
1414
QList < QPair<Qt::BrushStyle, QString> > styles;
1515
styles << qMakePair( Qt::SolidPattern, tr( "Solid" ) )
16+
<< qMakePair( Qt::NoBrush, tr( "No Brush" ) )
1617
<< qMakePair( Qt::HorPattern, tr( "Horizontal" ) )
1718
<< qMakePair( Qt::VerPattern, tr( "Vertical" ) )
1819
<< qMakePair( Qt::CrossPattern, tr( "Cross" ) )
@@ -25,8 +26,7 @@ QgsBrushStyleComboBox::QgsBrushStyleComboBox( QWidget* parent )
2526
<< qMakePair( Qt::Dense4Pattern, tr( "Dense 4" ) )
2627
<< qMakePair( Qt::Dense5Pattern, tr( "Dense 5" ) )
2728
<< qMakePair( Qt::Dense6Pattern, tr( "Dense 6" ) )
28-
<< qMakePair( Qt::Dense7Pattern, tr( "Dense 7" ) )
29-
<< qMakePair( Qt::NoBrush, tr( "No Brush" ) );
29+
<< qMakePair( Qt::Dense7Pattern, tr( "Dense 7" ) );
3030

3131
setIconSize( QSize( 32, 16 ) );
3232

src/gui/symbology-ng/qgspenstylecombobox.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ QgsPenStyleComboBox::QgsPenStyleComboBox( QWidget* parent )
1414
{
1515
QList < QPair<Qt::PenStyle, QString> > styles;
1616
styles << qMakePair( Qt::SolidLine, tr( "Solid Line" ) )
17+
<< qMakePair( Qt::NoPen, tr( "No Pen" ) )
1718
<< qMakePair( Qt::DashLine, tr( "Dash Line" ) )
1819
<< qMakePair( Qt::DotLine, tr( "Dot Line" ) )
1920
<< qMakePair( Qt::DashDotLine, tr( "Dash Dot Line" ) )
20-
<< qMakePair( Qt::DashDotDotLine, tr( "Dash Dot Dot Line" ) )
21-
<< qMakePair( Qt::NoPen, tr( "No Pen" ) );
21+
<< qMakePair( Qt::DashDotDotLine, tr( "Dash Dot Dot Line" ) );
2222

2323
setIconSize( QSize( 32, 12 ) );
2424

0 commit comments

Comments
 (0)