Skip to content
Permalink
Browse files

add icons to diagram dropdown

  • Loading branch information
m-kuhn committed Aug 16, 2012
1 parent 82c0a0a commit 97b6075aa3eba6fe28ee589918e3ba1e08760a57
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/app/qgsdiagramproperties.cpp
@@ -90,9 +90,14 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* pare
mLineOptionsLabel->setVisible( false );
}

mDiagramTypeComboBox->addItem( tr( "Pie chart" ) );
mDiagramTypeComboBox->addItem( tr( "Text diagram" ) );
mDiagramTypeComboBox->addItem( tr( "Histogram" ) );
QString iconPath = QgsApplication::defaultThemePath();
QPixmap pix;
pix.load( iconPath + "piechart", "png" );
mDiagramTypeComboBox->addItem( pix, tr( "Pie chart" ) );
pix.load( iconPath + "textdiagram", "png" );
mDiagramTypeComboBox->addItem( pix, tr( "Text diagram" ) );
pix.load( iconPath + "histogram", "png" );
mDiagramTypeComboBox->addItem( pix, tr( "Histogram" ) );

mLabelPlacementComboBox->addItem( tr( "Height" ) );
mLabelPlacementComboBox->addItem( tr( "x-height" ) );

0 comments on commit 97b6075

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