[QGIS Commit] r15377 - in trunk/qgis/src: app gui/symbology-ng

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Mar 7 02:17:27 EST 2011


Author: timlinux
Date: 2011-03-06 23:17:27 -0800 (Sun, 06 Mar 2011)
New Revision: 15377

Modified:
   trunk/qgis/src/app/qgssinglesymboldialog.cpp
   trunk/qgis/src/gui/symbology-ng/qgsbrushstylecombobox.cpp
   trunk/qgis/src/gui/symbology-ng/qgspenstylecombobox.cpp
Log:
Applied patch from JCTull - show no pen and no fill as second entry in lists for symbology. Thanks. Closes #3557

Modified: trunk/qgis/src/app/qgssinglesymboldialog.cpp
===================================================================
--- trunk/qgis/src/app/qgssinglesymboldialog.cpp	2011-03-07 05:12:50 UTC (rev 15376)
+++ trunk/qgis/src/app/qgssinglesymboldialog.cpp	2011-03-07 07:17:27 UTC (rev 15377)
@@ -180,16 +180,17 @@
   //set outline / line style
   //
   cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "SolidLine" ) ), "", "SolidLine" );
+  cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "NoPen" ) ), tr( "None" ), "NoPen" );
   cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashLine" ) ), "", "DashLine" );
   cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DotLine" ) ), "", "DotLine" );
   cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashDotLine" ) ), "" , "DashDotLine" );
   cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "DashDotDotLine" ) ), "", "DashDotDotLine" );
-  cboOutlineStyle->addItem( QIcon( QgsSymbologyUtils::char2LinePixmap( "NoPen" ) ), tr( "None" ), "NoPen" );
 
   //
   //set pattern icons and state
   //
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "SolidPattern" ) ), "", "SolidPattern" );
+  cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "NoBrush" ) ), tr( "None" ), "NoBrush" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "HorPattern" ) ), "", "HorPattern" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "VerPattern" ) ), "", "VerPattern" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "CrossPattern" ) ), "", "CrossPattern" );
@@ -203,7 +204,6 @@
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense5Pattern" ) ), "", "Dense5Pattern" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense6Pattern" ) ), "", "Dense6Pattern" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "Dense7Pattern" ) ), "", "Dense7Pattern" );
-  cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "NoBrush" ) ), tr( "None" ), "NoBrush" );
   cboFillStyle->addItem( QIcon( QgsSymbologyUtils::char2PatternPixmap( "TexturePattern" ) ), tr( "Texture" ), "TexturePattern" );
 
   if ( mVectorLayer && mVectorLayer->geometryType() != QGis::Point )

Modified: trunk/qgis/src/gui/symbology-ng/qgsbrushstylecombobox.cpp
===================================================================
--- trunk/qgis/src/gui/symbology-ng/qgsbrushstylecombobox.cpp	2011-03-07 05:12:50 UTC (rev 15376)
+++ trunk/qgis/src/gui/symbology-ng/qgsbrushstylecombobox.cpp	2011-03-07 07:17:27 UTC (rev 15377)
@@ -13,6 +13,7 @@
 {
   QList < QPair<Qt::BrushStyle, QString> > styles;
   styles << qMakePair( Qt::SolidPattern, tr( "Solid" ) )
+  << qMakePair( Qt::NoBrush, tr( "No Brush" ) )
   << qMakePair( Qt::HorPattern, tr( "Horizontal" ) )
   << qMakePair( Qt::VerPattern, tr( "Vertical" ) )
   << qMakePair( Qt::CrossPattern, tr( "Cross" ) )
@@ -25,8 +26,7 @@
   << qMakePair( Qt::Dense4Pattern, tr( "Dense 4" ) )
   << qMakePair( Qt::Dense5Pattern, tr( "Dense 5" ) )
   << qMakePair( Qt::Dense6Pattern, tr( "Dense 6" ) )
-  << qMakePair( Qt::Dense7Pattern, tr( "Dense 7" ) )
-  << qMakePair( Qt::NoBrush, tr( "No Brush" ) );
+  << qMakePair( Qt::Dense7Pattern, tr( "Dense 7" ) );
 
   setIconSize( QSize( 32, 16 ) );
 

Modified: trunk/qgis/src/gui/symbology-ng/qgspenstylecombobox.cpp
===================================================================
--- trunk/qgis/src/gui/symbology-ng/qgspenstylecombobox.cpp	2011-03-07 05:12:50 UTC (rev 15376)
+++ trunk/qgis/src/gui/symbology-ng/qgspenstylecombobox.cpp	2011-03-07 07:17:27 UTC (rev 15377)
@@ -14,11 +14,11 @@
 {
   QList < QPair<Qt::PenStyle, QString> > styles;
   styles << qMakePair( Qt::SolidLine, tr( "Solid Line" ) )
+  << qMakePair( Qt::NoPen, tr( "No Pen" ) )
   << qMakePair( Qt::DashLine, tr( "Dash Line" ) )
   << qMakePair( Qt::DotLine, tr( "Dot Line" ) )
   << qMakePair( Qt::DashDotLine, tr( "Dash Dot Line" ) )
-  << qMakePair( Qt::DashDotDotLine, tr( "Dash Dot Dot Line" ) )
-  << qMakePair( Qt::NoPen, tr( "No Pen" ) );
+  << qMakePair( Qt::DashDotDotLine, tr( "Dash Dot Dot Line" ) );
 
   setIconSize( QSize( 32, 12 ) );
 



More information about the QGIS-commit mailing list