kmail appearance
Alfred Poschmann
aposch at gmx.net
Tue Jan 21 12:30:39 GMT 2003
Am Mon, 2003-01-20 um 10.46 schrieb Ingo Klöcker:
> Alfred Poschmann wrote:
> > I failed to compile HEAD, so I dl'd the source-RPM of kdenetwork (my
> > actual system: suse8.0, KDE 3.0.4) and changed the appropriate lines.
> > But it fails to compile, and I don't know anything about OOP. So what
> > does this mean?
>
> This should work:
>
> KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId );
> if (!mMsgBase) return;
>
> if( column == headers->paintInfo()->dateCol )
> p->setFont(headers->dateFont);
>
> QFont f = p->font();
> switch (mMsgBase->status())
> {
> case KMMsgStatusNew:
> color = (QColor*)(&headers->paintInfo()->colNew);
> f.setWeight(QFont::Bold);
> p->setFont(f);
> break;
> case KMMsgStatusUnread:
> color = (QColor*)(&headers->paintInfo()->colUnread);
> f.setWeight(QFont::Bold);
> p->setFont(f);
> break;
This works! My own last try failed as there can only be one call of
QFont (and I had it twice, in both cases). Where can I learn why and
what QFont is?
Thanks,
Alfred
___________________________________________________
This message is from the kde mailing list.
Account management: http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list