Skip to content

Commit 97b6075

Browse files
committedAug 16, 2012
add icons to diagram dropdown
1 parent 82c0a0a commit 97b6075

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎src/app/qgsdiagramproperties.cpp

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

93-
mDiagramTypeComboBox->addItem( tr( "Pie chart" ) );
94-
mDiagramTypeComboBox->addItem( tr( "Text diagram" ) );
95-
mDiagramTypeComboBox->addItem( tr( "Histogram" ) );
93+
QString iconPath = QgsApplication::defaultThemePath();
94+
QPixmap pix;
95+
pix.load( iconPath + "piechart", "png" );
96+
mDiagramTypeComboBox->addItem( pix, tr( "Pie chart" ) );
97+
pix.load( iconPath + "textdiagram", "png" );
98+
mDiagramTypeComboBox->addItem( pix, tr( "Text diagram" ) );
99+
pix.load( iconPath + "histogram", "png" );
100+
mDiagramTypeComboBox->addItem( pix, tr( "Histogram" ) );
96101

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

0 commit comments

Comments
 (0)
Please sign in to comment.