Skip to content
Permalink
Browse files

Fixed symbol selector UI, use just one symbol color button instead of…

… former three buttons

git-svn-id: http://svn.osgeo.org/qgis/trunk@12817 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Jan 22, 2010
1 parent 8c38d2d commit 788da5587f5e2ea4617591754851077dc22eb0e3
Showing with 157 additions and 194 deletions.
  1. +2 −7 src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
  2. +155 −187 src/ui/qgssymbolv2selectordialogbase.ui
@@ -57,9 +57,7 @@ QgsSymbolV2SelectorDialog::QgsSymbolV2SelectorDialog( QgsSymbolV2* symbol, QgsSt
// there's a correspondence between symbol type number and page numbering => exploit it!
stackedWidget->setCurrentIndex( symbol->type() );

connect( btnColorMarker, SIGNAL( clicked() ), this, SLOT( setSymbolColor() ) );
connect( btnColorLine, SIGNAL( clicked() ), this, SLOT( setSymbolColor() ) );
connect( btnColorFill, SIGNAL( clicked() ), this, SLOT( setSymbolColor() ) );
connect( btnColor, SIGNAL( clicked() ), this, SLOT( setSymbolColor() ) );
connect( spinAngle, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerAngle( double ) ) );
connect( spinSize, SIGNAL( valueChanged( double ) ), this, SLOT( setMarkerSize( double ) ) );
connect( spinWidth, SIGNAL( valueChanged( double ) ), this, SLOT( setLineWidth( double ) ) );
@@ -130,10 +128,7 @@ void QgsSymbolV2SelectorDialog::updateSymbolPreview()

void QgsSymbolV2SelectorDialog::updateSymbolColor()
{
QColor c = mSymbol->color();
btnColorMarker->setColor( c );
btnColorLine->setColor( c );
btnColorFill->setColor( c );
btnColor->setColor( mSymbol->color() );
}

void QgsSymbolV2SelectorDialog::updateSymbolInfo()

0 comments on commit 788da55

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