kmail appearance

Ingo Klöcker kloecker at kde.org
Mon Jan 20 09:46:13 GMT 2003


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;

Regards,
Ingo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20030120/a55479ce/attachment.sig>


More information about the kde mailing list