Skip to content
Permalink
Browse files

Fixed simple symbol marker sizes in the symbol layer widget

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13323 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Apr 18, 2010
1 parent e58f837 commit 2287937241ca28754e7554b59c3eaee90293d2d2
Showing with 2 additions and 5 deletions.
  1. +2 −2 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
  2. +0 −3 src/ui/symbollayer/widget_simplemarker.ui
@@ -156,11 +156,11 @@ QgsSimpleMarkerSymbolLayerV2Widget::QgsSimpleMarkerSymbolLayerV2Widget( QWidget*
QStringList names;
names << "circle" << "rectangle" << "diamond" << "pentagon" << "cross" << "cross2" << "triangle"
<< "equilateral_triangle" << "star" << "regular_star" << "arrow" << "line";
double markerSize = size.width() - 1; // keep some space around
double markerSize = DEFAULT_POINT_SIZE * 2;
for ( int i = 0; i < names.count(); ++i )
{
QgsSimpleMarkerSymbolLayerV2* lyr = new QgsSimpleMarkerSymbolLayerV2( names[i], QColor( 200, 200, 200 ), QColor( 0, 0, 0 ), markerSize );
QIcon icon = QgsSymbolLayerV2Utils::symbolLayerPreviewIcon( lyr, QgsSymbolV2::MM, size ); //todo: unit needs to be a parameter
QIcon icon = QgsSymbolLayerV2Utils::symbolLayerPreviewIcon( lyr, QgsSymbolV2::MM, size );
QListWidgetItem* item = new QListWidgetItem( icon, QString(), lstNames );
item->setData( Qt::UserRole, names[i] );
delete lyr;
@@ -168,9 +168,6 @@
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="uniformItemSizes">
<bool>true</bool>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>

0 comments on commit 2287937

Please sign in to comment.
You can’t perform that action at this time.