Skip to content
Permalink
Browse files

Add icons to the diagram dropdown

  • Loading branch information
m-kuhn committed Aug 16, 2012
1 parent 97b6075 commit d845a0a458e9ba61dccbe9468b28145c0e6c46d2

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

@@ -90,13 +90,11 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* pare
mLineOptionsLabel->setVisible( false );
}

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

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

0 comments on commit d845a0a

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