knode
kncollectionviewitem.cpp
Go to the documentation of this file.
25 KNCollectionViewItem::KNCollectionViewItem( FolderTreeWidget *parent, Protocol protocol, FolderType type) :
32 KNCollectionViewItem::KNCollectionViewItem( FolderTreeWidgetItem *parent, Protocol protocol, FolderType type, int unread, int total ) :
107 QString KNCollectionViewItem::elidedLabelText( const QFontMetrics &fm, unsigned int width ) const
virtual QString elidedLabelText(const QFontMetrics &fm, unsigned int width) const
Elid names of group according to usenet habit.
Definition: kncollectionviewitem.cpp:107
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
bool operator<(const QTreeWidgetItem &other) const
Sort newsgroups before local folders.
Definition: kncollectionviewitem.cpp:81
A folder tree node to be used with FolderTreeWidget.
Definition: foldertreewidget.h:225
A tree widget useful for displaying a tree of folders containing messages.
Definition: foldertreewidget.h:73
~KNCollectionViewItem()
Definition: kncollectionviewitem.cpp:41
void setIcon(int column, const QIcon &icon)
void setCollection(KNCollection::Ptr c)
Sets the collection this item represents.
Definition: kncollectionviewitem.cpp:100
void setUnreadCount(int unreadCount)
Sets the unread message count to be displayed in the special "Unread" column.
Definition: foldertreewidget.cpp:453
void setFlags(QFlags< Qt::ItemFlag > flags)
FolderType
Folder type information Please note that this list should be kept in the order of items that one want...
Definition: foldertreewidget.h:245
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const
Protocol protocol() const
Returns the protocol associated to the folder item.
Definition: foldertreewidget.h:379
int width(const QString &text, int len) const
QString & replace(int position, int n, QChar after)
boost::shared_ptr< KNCollection > Ptr
Shared pointer to a KNCollection.
Definition: kncollection.h:42
const QString & labelText() const
Returns the textual data for the "Label" column of the parent FolderTreeWidget.
Definition: foldertreewidget.h:300
Qt::ItemFlags flags() const
KNCollectionViewItem(FolderTreeWidget *parent, Protocol protocol=NONE, FolderType type=Root)
Definition: kncollectionviewitem.cpp:25
void setTotalCount(int totalCount)
Sets the total message count to be displayed in the special "Total" column.
Definition: foldertreewidget.cpp:476
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.