Skip to content

Commit d845a0a

Browse files
committedAug 16, 2012
Add icons to the diagram dropdown
1 parent 97b6075 commit d845a0a

File tree

8 files changed

+2773
-465
lines changed

8 files changed

+2773
-465
lines changed
 

‎images/images.qrc

Lines changed: 463 additions & 460 deletions
Large diffs are not rendered by default.

‎images/themes/default/histogram.png

510 Bytes
Loading

‎images/themes/default/histogram.svg

Lines changed: 786 additions & 0 deletions
Loading

‎images/themes/default/pie-chart.png

960 Bytes
Loading

‎images/themes/default/pie-chart.svg

Lines changed: 755 additions & 0 deletions
Loading

‎images/themes/default/text.png

659 Bytes
Loading

‎images/themes/default/text.svg

Lines changed: 766 additions & 0 deletions
Loading

‎src/app/qgsdiagramproperties.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* pare
9090
mLineOptionsLabel->setVisible( false );
9191
}
9292

93-
QString iconPath = QgsApplication::defaultThemePath();
94-
QPixmap pix;
95-
pix.load( iconPath + "piechart", "png" );
93+
QPixmap pix = QgsApplication::getThemePixmap( "pie-chart" );
9694
mDiagramTypeComboBox->addItem( pix, tr( "Pie chart" ) );
97-
pix.load( iconPath + "textdiagram", "png" );
95+
pix = QgsApplication::getThemePixmap( "text" );
9896
mDiagramTypeComboBox->addItem( pix, tr( "Text diagram" ) );
99-
pix.load( iconPath + "histogram", "png" );
97+
pix = QgsApplication::getThemePixmap( "histogram" );
10098
mDiagramTypeComboBox->addItem( pix, tr( "Histogram" ) );
10199

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

0 commit comments

Comments
 (0)
Please sign in to comment.