Skip to content
Permalink
Browse files

[FEATURE] make restriction to change only common properties of unique…

… value classes optional (fixes #1703)

git-svn-id: http://svn.osgeo.org/qgis/trunk@11229 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jul 31, 2009
1 parent b49980c commit bf616cb085fdfade9402fff2bde68fdf50b788ac
Showing with 14 additions and 3 deletions.
  1. +3 −2 src/app/qgsuniquevaluedialog.cpp
  2. +11 −1 src/ui/qgsuniquevaluedialogbase.ui
@@ -102,6 +102,7 @@ QgsUniqueValueDialog::QgsUniqueValueDialog( QgsVectorLayer* vl ): QDialog(), mVe
QObject::connect( mRandomizeColors, SIGNAL( clicked() ), this, SLOT( randomizeColors() ) );
QObject::connect( mResetColors, SIGNAL( clicked() ), this, SLOT( resetColors() ) );
QObject::connect( mClassListWidget, SIGNAL( itemSelectionChanged() ), this, SLOT( selectionChanged() ) );
QObject::connect( mCommonPropertyLock, SIGNAL( clicked() ), this, SLOT( selectionChanged() ) );
QObject::connect( mClassListWidget, SIGNAL( itemChanged( QListWidgetItem * ) ), this, SLOT( itemChanged( QListWidgetItem * ) ) );
QObject::connect( &sydialog, SIGNAL( settingsChanged() ), this, SLOT( applySymbologyChanges() ) );
mSymbolWidgetStack->addWidget( &sydialog );
@@ -348,7 +349,7 @@ void QgsUniqueValueDialog::selectionChanged()
{
mDeletePushButton->setEnabled( true );

if ( selection.size() == 1 )
if ( selection.size() == 1 || !mCommonPropertyLock->isChecked() )
{
QListWidgetItem *item = selection[0];
if ( !item )
@@ -361,7 +362,7 @@ void QgsUniqueValueDialog::selectionChanged()
sydialog.set( symbol );
sydialog.setLabel( symbol->label() );
}
else if ( selection.size() > 1 )
else if ( selection.size() > 1 && mCommonPropertyLock->isChecked() )
{
if ( !mValues.contains( selection[0]->text() ) )
return;
@@ -124,7 +124,7 @@
</item>
</layout>
</item>
<item row="2" column="0" >
<item row="2" column="0" rowspan="2" >
<widget class="QListWidget" name="mClassListWidget" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Expanding" hsizetype="Minimum" >
@@ -146,6 +146,16 @@
<widget class="QWidget" name="page_2" />
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="mCommonPropertyLock">
<property name="text">
<string>Restrict changes to common properties</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />

0 comments on commit bf616cb

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