Skip to content
Permalink
Browse files

Fixed symbol levels dialog

  • Loading branch information
wonder-sk committed Jan 24, 2012
1 parent a7cf5e4 commit 138d4a28fd5d736cd868378b1b537b2666d3ad80
@@ -127,9 +127,9 @@ void QgsSymbolLevelsV2Dialog::updateUi()

void QgsSymbolLevelsV2Dialog::setDefaultLevels()
{
for ( int i = 0; i < mSymbols.count(); i++ )
for ( int i = 0; i < mList.count(); i++ )
{
QgsSymbolV2* sym = mSymbols[i];
QgsSymbolV2* sym = mList[i].second;
for ( int layer = 0; layer < sym->symbolLayerCount(); layer++ )
{
sym->symbolLayer( layer )->setRenderingPass( layer );
@@ -145,9 +145,9 @@ bool QgsSymbolLevelsV2Dialog::usingLevels() const

void QgsSymbolLevelsV2Dialog::renderingPassChanged( int row, int column )
{
if ( row < 0 || row >= mSymbols.count() )
if ( row < 0 || row >= mList.count() )
return;
QgsSymbolV2* sym = mSymbols[row];
QgsSymbolV2* sym = mList[row].second;
if ( column < 0 || column >= sym->symbolLayerCount() )
return;
sym->symbolLayer( column )->setRenderingPass( tableLevels->item( row, column )->text().toInt() );
@@ -13,7 +13,6 @@ class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbol
{
Q_OBJECT
public:
QgsSymbolLevelsV2Dialog( QgsSymbolV2List symbols, bool usingSymbolLevels, QWidget* parent = NULL );
QgsSymbolLevelsV2Dialog( QgsLegendSymbolList list, bool usingSymbolLevels, QWidget* parent = NULL );

bool usingLevels() const;
@@ -33,7 +32,6 @@ class GUI_EXPORT QgsSymbolLevelsV2Dialog : public QDialog, private Ui::QgsSymbol
protected:
//! maximal number of layers from all symbols
int mMaxLayers;
QgsSymbolV2List mSymbols;
QgsLegendSymbolList mList;
//! whether symbol layers always should be used (default false)
bool mForceOrderingEnabled;

0 comments on commit 138d4a2

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