Skip to content

Commit

Permalink
Fixed symbol selector UI, use just one symbol color button instead of…
Browse files Browse the repository at this point in the history
… former three buttons

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12817 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 22, 2010
1 parent 523f804 commit 701c3b7
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 194 deletions.
9 changes: 2 additions & 7 deletions src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) );
Expand Down Expand Up @@ -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()
Expand Down
Loading

0 comments on commit 701c3b7

Please sign in to comment.