kmail appearance

Alfred Poschmann aposch at gmx.net
Fri Jan 17 14:12:22 GMT 2003


Am Mit, 2003-01-15 um 14.23 schrieb Ingo Klöcker:
> David Rosenstrauch wrote:
> > On Tuesday 14 January 2003 04:46 pm, Alfred Poschmann wrote:
> >> Hi,
> >> is there a way to configure kmails messagelist? I would like to see
> >> unread (new and/or unread)  messages in boldinstead of colored, 
[..]
> You will have to change this in the source (you probably will have to 
> change paintCell in kmheaders.cpp. Around line 337 add the lines which 
> are marked with a '+':
> 

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?

---output: rpm -bb kdenetwork3.spec---
In file included from kmail.all_cpp.cpp:12:
kmheaders.cpp: In method `void KMHeaderItem::paintCell(QPainter *, const
QColorGroup &, int, int, int)':
kmheaders.cpp:293: case label `KMMsgStatusUnread' within scope of
cleanup or variable array
kmheaders.cpp:289: warning: destructor needed for `class QFont f'
kmheaders.cpp:293: warning: where case label appears here
kmheaders.cpp:293: warning: (enclose actions of previous case statements
requiring
kmheaders.cpp:293: warning: destructors in their own binding contours.)
kmheaders.cpp:293: jump to case label
kmheaders.cpp:289:   crosses initialization of `class QFont f'
kmheaders.cpp:295: redeclaration of `class QFont f'
kmheaders.cpp:289: `class QFont f' previously declared here
kmheaders.cpp:299: case label `KMMsgStatusFlag' within scope of cleanup
or variable array
%s:177670304: warning:  oÌâÿ¿F
kmheaders.cpp:299: warning: where case label appears here
kmheaders.cpp:299: jump to case label
kmheaders.cpp:295:   crosses initialization of `class QFont f'
kmheaders.cpp:302: `default' label within scope of cleanup or variable
array
%s:177670304: warning: 
kmheaders.cpp:302: warning: where case label appears here
kmheaders.cpp:302: jump to case label
kmheaders.cpp:295:   crosses initialization of `class QFont f'
make[3]: *** [kmail.all_cpp.o] Fehler 1
make[3]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/packages/BUILD/kdenetwork-3.0.4/kmail«
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/packages/BUILD/kdenetwork-3.0.4/kmail«
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
»/usr/src/packages/BUILD/kdenetwork-3.0.4«
make: *** [all] Fehler 2
Bad exit status from /var/tmp/rpm-tmp.76710 (%build)
---end of output---

Just for info the modified code-snippet from kmheaders.cpp: 

---kmheaders.cpp, line 283ff---
KMMsgBase *mMsgBase = headers->folder()->getMsgBase( mMsgId );
    if (!mMsgBase) return;
    switch (mMsgBase->status())
    {
      case KMMsgStatusNew:
        color = (QColor*)(&headers->paintInfo()->colNew);
        QFont f = p->font();
        f.setWeight(QFont::Bold);
        p->setFont(f);
        break;
      case KMMsgStatusUnread:
        color = (QColor*)(&headers->paintInfo()->colUnread);
        QFont f = p->font();
        f.setWeight(QFont::Bold);
        p->setFont(f);
        break;
---end of modified part---


Does anyone knows how to solve this?

TIA,
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