How to call KFontChooser

Rolf Eike Beer kde at opensource.sf-tec.de
Mon Sep 13 08:41:06 BST 2010


Aaron J. Seigo wrote:
> On Sunday, September 12, 2010, Rolf Eike Beer wrote:
> > This question goes especially to Aaron as "svn blame" says it's his code
> > ;)
> 
> really? i touched that? hm. ok :)

At least the header is all yours. Maybe you moved it around or whatever.

> > QStringList list;
> > KFontChooser::getFontList(list, KFontChooser::SmoothScalableFonts);
> > KFontChooser *chooseFont = new KFontChooser(0, false, list);
> > 
> > Which would end up in
> > 
> > warning: converting ‘false’ to pointer type for argument 1 of
> > ‘QFlags<Enum>::QFlags(void**) [with Enum = KFontChooser::DisplayFlag,
> > void** = void**]’
> > 
> > I guess this should be NoDisplayFlag instead?
> 
> yes, that looks sane..

Ok, I'll fix it up then.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100913/0bf1488b/attachment.sig>


More information about the kde-core-devel mailing list