Skip to content

Commit 8a55d7f

Browse files
author
timlinux
committed
Merge renderer branch to trunk r7761:7920
git-svn-id: http://svn.osgeo.org/qgis/trunk@7922 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e70e53d commit 8a55d7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3635
-2288
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
PROJECT(qgis0.9.2)
32

43
# TODO:

images/svg/gpsicons/plane_orange.svg

+76
Loading

images/svg/icon/cameraangle.svg

+102
Loading

src/app/qgsgraduatedsymboldialog.cpp

+15-10
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,18 @@ QgsGraduatedSymbolDialog::QgsGraduatedSymbolDialog(QgsVectorLayer * layer): QDia
8989
//fill the items of the renderer into mValues
9090
for(QList<QgsSymbol*>::iterator it=list.begin();it!=list.end();++it)
9191
{
92-
//todo: make an assignment operator and a copy constructor for QgsSymbol
93-
QString classbreak=(*it)->lowerValue()+" - "+(*it)->upperValue();
94-
QgsSymbol* sym=new QgsSymbol(mVectorLayer->vectorType(), (*it)->lowerValue(), (*it)->upperValue(), (*it)->label());
95-
sym->setPen((*it)->pen());
96-
sym->setCustomTexture((*it)->customTexture());
97-
sym->setBrush((*it)->brush());
98-
sym->setNamedPointSymbol((*it)->pointSymbolName());
99-
sym->setPointSize((*it)->pointSize());
100-
mEntries.insert(std::make_pair(classbreak,sym));
101-
mClassListWidget->addItem(classbreak);
92+
//todo: make an assignment operator and a copy constructor for QgsSymbol
93+
QString classbreak=(*it)->lowerValue()+" - "+(*it)->upperValue();
94+
QgsSymbol* sym=new QgsSymbol(mVectorLayer->vectorType(), (*it)->lowerValue(), (*it)->upperValue(), (*it)->label());
95+
sym->setPen((*it)->pen());
96+
sym->setCustomTexture((*it)->customTexture());
97+
sym->setBrush((*it)->brush());
98+
sym->setNamedPointSymbol((*it)->pointSymbolName());
99+
sym->setPointSize((*it)->pointSize());
100+
sym->setScaleClassificationField((*it)->scaleClassificationField());
101+
sym->setRotationClassificationField((*it)->rotationClassificationField());
102+
mEntries.insert(std::make_pair(classbreak,sym));
103+
mClassListWidget->addItem(classbreak);
102104
}
103105

104106
}
@@ -177,6 +179,8 @@ void QgsGraduatedSymbolDialog::apply()
177179
{
178180
sy->setNamedPointSymbol(it->second->pointSymbolName());
179181
sy->setPointSize(it->second->pointSize());
182+
sy->setScaleClassificationField(it->second->scaleClassificationField());
183+
sy->setRotationClassificationField(it->second->rotationClassificationField());
180184

181185
}
182186

@@ -215,6 +219,7 @@ void QgsGraduatedSymbolDialog::apply()
215219
delete sy;
216220
}
217221
}
222+
renderer->updateSymbolAttributes();
218223

219224
std::map<QString,int>::iterator iter=mFieldMap.find(classificationComboBox->currentText());
220225
if(iter!=mFieldMap.end())

0 commit comments

Comments
 (0)