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)
virtual QString text(int column) const
QString & append(QChar ch)
Header view, displays the article listing of the currently selected news group or folder...
Definition: headerview.h:130
Definition: knarticle.h:47
int width() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
int localeAwareCompare(const QString &other) const
void setMimeData(QMimeData *data)
virtual QByteArray text(quint32 serialNumber) const =0
const QFont & font() const
void setPixmap(const QPixmap &pixmap)
const QColor & color(ColorGroup group, ColorRole role) const
virtual void setOpen(bool o)
Q3ListViewItem * current() const
void setBold(bool enable)
virtual int compare(Q3ListViewItem *i, int col, bool ascending) const
Definition: knhdrviewitem.cpp:78
QRect boundingRect(QChar ch) const
void setFont(const QFont &font)
QString number(int n, int base)
void setPen(const QColor &color)
KNHdrViewItem(KNHeaderView *ref, KNArticle::Ptr a=KNArticle::Ptr())
Definition: knhdrviewitem.cpp:30
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const
void drawText(const QPointF &position, const QString &text)
void setColor(const QColor &color)
bool isNull() const
int height() const
int width(const QString &text, int len) const
int width(const QFontMetrics &fm, const Q3ListView *lv, int column) const
Definition: knhdrviewitem.cpp:194
int width() const
QString mid(int position, int n) const
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:41
QFontMetrics fontMetrics() const
int length() const
KNRemoteArticle represents an article, whos body has to be retrieved from a remote host or from the l...
Definition: knarticle.h:105
void setData(const QString &mimeType, const QByteArray &data)
void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
Definition: knhdrviewitem.cpp:119
const QPen & pen() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: knconfig.h:64
int depth() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.