Skip to content
Permalink
Browse files
Yet another tweak to svn r5815 (dialog box now remembers the
drawpolyogn toggle state 


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5823 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 13, 2006
1 parent 3d74c13 commit 6c6d9e6f291ccd6f604234993dfe0f8fda904707
Showing with 14 additions and 5 deletions.
  1. +13 −4 src/gui/qgscontinuouscolordialog.cpp
  2. +1 −1 src/gui/qgscontinuouscolorrenderer.h
@@ -86,11 +86,20 @@ QgsContinuousColorDialog::QgsContinuousColorDialog(QgsVectorLayer * layer)
}
outlinewidthspinbox->setMinValue(1);
outlinewidthspinbox->setValue(minsymbol->pen().width());
}


cb_polygonOutline->setCheckState(Qt::Checked);
outlinewidthspinbox->setEnabled(true);
if (renderer->drawPolygonOutline())
cb_polygonOutline->setCheckState(Qt::Checked);
else
cb_polygonOutline->setCheckState(Qt::Unchecked);
}
else
{
cb_polygonOutline->setCheckState(Qt::Checked);
outlinewidthspinbox->setValue(1);
}
// Ensure that the state of other widgets is appropriate for the
// state of the polygonoutline checkbox.
on_cb_polygonOutline_clicked();
}

QgsContinuousColorDialog::QgsContinuousColorDialog()
@@ -52,7 +52,7 @@ class QgsContinuousColorRenderer: public QgsRenderer
/**Returns the symbol for the maximum value*/
const QgsSymbol* maximumSymbol() const;
/** whether to draw a polygon outline*/
bool drawPolygonOutline() { return mDrawPolygonOutline; }
bool drawPolygonOutline() const { return mDrawPolygonOutline; }
/**Reads the renderer configuration from an XML file
@param rnode the DOM node to read
@param vl the vector layer which will be associated with the renderer*/

0 comments on commit 6c6d9e6

Please sign in to comment.