knode
knhdrviewitem.cpp
Go to the documentation of this file.
91 diff = boost::static_pointer_cast<KNRemoteArticle>( art )->score() - boost::static_pointer_cast<KNRemoteArticle>( otherArticle )->score();
103 if (art->type() == KNArticle::ATremote && static_cast<KNHeaderView*>( listView() )->sortByThreadChangeDate()) {
106 if ( boost::static_pointer_cast<KNRemoteArticle>( otherArticle )->subThreadChangeDate() > date2 ) {
119 void KNHdrViewItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int alignment )
169 QString t = p->fontMetrics().elidedText( text( column ), Qt::ElideRight, width - xText - cntWidth - 5 );
188 p->drawText( xText + QFontMetrics( orig ).width( t, -1 ), 0, width - xText - 5, height(), alignment | Qt::AlignVCenter, t2 );
224 if ( art->lines()->numberOfLines() != 0 ) { // invalid values are read as '0' in KNGroup::insortHeaders()
248 #warning Enable this section again, once KNHdrView does not derive from K3ListView any more and can process QDrag (not Q3DragObject)
Header view, displays the article listing of the currently selected news group or folder...
Definition: headerview.h:130
Definition: knarticle.h:45
virtual QByteArray text(quint32 serialNumber) const =0
virtual int compare(Q3ListViewItem *i, int col, bool ascending) const
Definition: knhdrviewitem.cpp:78
KNHdrViewItem(KNHeaderView *ref, KNArticle::Ptr a=KNArticle::Ptr())
Definition: knhdrviewitem.cpp:30
int width(const QFontMetrics &fm, const Q3ListView *lv, int column) const
Definition: knhdrviewitem.cpp:194
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:39
KNRemoteArticle represents an article, whos body has to be retrieved from a remote host or from the l...
Definition: knarticle.h:103
void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
Definition: knhdrviewitem.cpp:119
Definition: knconfig.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.