Bug 190050 - Make it possible to set the font of the axis labels in a KPlotWidget
Summary: Make it possible to set the font of the axis labels in a KPlotWidget
Status: REPORTED
Alias: None
Product: frameworks-kplotting
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 12:28 UTC by Job Noorman
Modified: 2014-10-26 15:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Job Noorman 2009-04-19 12:28:16 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

I would like to be able to chose the font that is used to draw the labels of axes in a KPlotWidget. ATM, the font is really small and I can't find a way to change this.

I found the following code in KPlotWidget::drawAxes:

00715     //set small font for tick labels
00716     QFont f = p->font();
00717     int s = f.pointSize();
00718     f.setPointSize( s - 2 );
00719     p->setFont( f );

So the font size is decreased to draw the tick labels but after this, it is never increased again to draw the axis labels. Is this a bug?

Cheers!
Job