KDE3Support
#include <k3listview.h>
Public Member Functions | |
K3ListViewItem (Q3ListView *parent) | |
K3ListViewItem (Q3ListViewItem *parent) | |
K3ListViewItem (Q3ListView *parent, Q3ListViewItem *after) | |
K3ListViewItem (Q3ListViewItem *parent, Q3ListViewItem *after) | |
K3ListViewItem (Q3ListView *parent, const QString &label1, const QString &label2=QString(), const QString &label3=QString(), const QString &label4=QString(), const QString &label5=QString(), const QString &label6=QString(), const QString &labem7=QString(), const QString &label7=QString()) | |
K3ListViewItem (Q3ListViewItem *parent, const QString &label1, const QString &label2=QString(), const QString &label3=QString(), const QString &label4=QString(), const QString &label5=QString(), const QString &label6=QString(), const QString &labem7=QString(), const QString &label7=QString()) | |
K3ListViewItem (Q3ListView *parent, Q3ListViewItem *after, const QString &label1, const QString &label2=QString(), const QString &label3=QString(), const QString &label4=QString(), const QString &label5=QString(), const QString &label6=QString(), const QString &labem7=QString(), const QString &label7=QString()) | |
K3ListViewItem (Q3ListViewItem *parent, Q3ListViewItem *after, const QString &label1, const QString &label2=QString(), const QString &label3=QString(), const QString &label4=QString(), const QString &label5=QString(), const QString &label6=QString(), const QString &labem7=QString(), const QString &label7=QString()) | |
virtual | ~K3ListViewItem () |
const QColor & | backgroundColor () |
QColor | backgroundColor (int column) |
virtual void | insertItem (Q3ListViewItem *item) |
bool | isAlternate () |
virtual void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
virtual void | takeItem (Q3ListViewItem *item) |
Public Member Functions inherited from Q3ListViewItem | |
Q3ListViewItem (Q3ListView *parent) | |
Q3ListViewItem (Q3ListViewItem *parent) | |
Q3ListViewItem (Q3ListViewItem *parent, Q3ListViewItem *after) | |
Q3ListViewItem (Q3ListViewItem *parent, Q3ListViewItem *after, const QString &label1, const QString &label2, const QString &label3, const QString &label4, const QString &label5, const QString &label6, const QString &label7, const QString &label8) | |
Q3ListViewItem (Q3ListView *parent, const QString &label1, const QString &label2, const QString &label3, const QString &label4, const QString &label5, const QString &label6, const QString &label7, const QString &label8) | |
Q3ListViewItem (Q3ListView *parent, Q3ListViewItem *after) | |
Q3ListViewItem (Q3ListViewItem *parent, const QString &label1, const QString &label2, const QString &label3, const QString &label4, const QString &label5, const QString &label6, const QString &label7, const QString &label8) | |
Q3ListViewItem (Q3ListView *parent, Q3ListViewItem *after, const QString &label1, const QString &label2, const QString &label3, const QString &label4, const QString &label5, const QString &label6, const QString &label7, const QString &label8) | |
virtual | ~Q3ListViewItem () |
virtual bool | acceptDrop (const QMimeSource *mime) const |
int | childCount () const |
virtual int | compare (Q3ListViewItem *i, int col, bool ascending) const |
int | depth () const |
bool | dragEnabled () const |
bool | dropEnabled () const |
Q3ListViewItem * | firstChild () const |
int | height () const |
virtual void | invalidateHeight () |
bool | isEnabled () const |
bool | isExpandable () const |
bool | isOpen () const |
bool | isSelectable () const |
bool | isSelected () const |
bool | isVisible () const |
Q3ListViewItem * | itemAbove () const |
Q3ListViewItem * | itemBelow () const |
int | itemPos () const |
virtual QString | key (int column, bool ascending) const |
Q3ListView * | listView () const |
void | moveItem (Q3ListViewItem *after) |
bool | multiLinesEnabled () const |
Q3ListViewItem * | nextSibling () const |
virtual void | paintBranches (QPainter *p, const QColorGroup &cg, int w, int y, int h) |
virtual void | paintFocus (QPainter *p, const QColorGroup &cg, const QRect &r) |
Q3ListViewItem * | parent () const |
virtual const QPixmap * | pixmap (int column) const |
virtual void | removeItem (Q3ListViewItem *item) |
bool | renameEnabled (int col) const |
void | repaint () const |
virtual int | rtti () const |
virtual void | setDragEnabled (bool allow) |
virtual void | setDropEnabled (bool allow) |
virtual void | setEnabled (bool b) |
virtual void | setExpandable (bool enable) |
virtual void | setMultiLinesEnabled (bool b) |
virtual void | setOpen (bool o) |
virtual void | setPixmap (int column, const QPixmap &pm) |
virtual void | setRenameEnabled (int col, bool b) |
virtual void | setSelectable (bool enable) |
virtual void | setSelected (bool s) |
virtual void | setText (int column, const QString &text) |
virtual void | setup () |
void | setVisible (bool b) |
virtual void | sort () |
virtual void | sortChildItems (int column, bool ascending) |
virtual void | startRename (int col) |
virtual QString | text (int column) const |
int | totalHeight () const |
virtual int | width (const QFontMetrics &fm, const Q3ListView *lv, int c) const |
void | widthChanged (int c) const |
Additional Inherited Members | |
Protected Member Functions inherited from Q3ListViewItem | |
virtual void | activate () |
bool | activatedPos (QPoint &pos) |
virtual void | cancelRename (int col) |
virtual void | dragEntered () |
virtual void | dragLeft () |
virtual void | dropped (QDropEvent *e) |
virtual void | enforceSortOrder () const |
virtual void | okRename (int col) |
virtual void | setHeight (int height) |
Detailed Description
A listview item with support for alternate background colors.
It is a drop-in replacement for Q3ListViewItem
listview item with alternate background color support
Definition at line 986 of file k3listview.h.
Constructor & Destructor Documentation
K3ListViewItem::K3ListViewItem | ( | Q3ListView * | parent | ) |
constructors.
The semantics remain as in Q3ListViewItem. Although they accept a Q3ListViewItem as parent, please don't mix K3ListViewItem (or subclasses) with Q3ListViewItem (or subclasses).
Definition at line 2154 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListViewItem * | parent | ) |
Definition at line 2160 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListView * | parent, |
Q3ListViewItem * | after | ||
) |
Definition at line 2166 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListViewItem * | parent, |
Q3ListViewItem * | after | ||
) |
Definition at line 2172 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListView * | parent, |
const QString & | label1, | ||
const QString & | label2 = QString() , |
||
const QString & | label3 = QString() , |
||
const QString & | label4 = QString() , |
||
const QString & | label5 = QString() , |
||
const QString & | label6 = QString() , |
||
const QString & | labem7 = QString() , |
||
const QString & | label7 = QString() |
||
) |
Definition at line 2178 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListViewItem * | parent, |
const QString & | label1, | ||
const QString & | label2 = QString() , |
||
const QString & | label3 = QString() , |
||
const QString & | label4 = QString() , |
||
const QString & | label5 = QString() , |
||
const QString & | label6 = QString() , |
||
const QString & | labem7 = QString() , |
||
const QString & | label7 = QString() |
||
) |
Definition at line 2186 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListView * | parent, |
Q3ListViewItem * | after, | ||
const QString & | label1, | ||
const QString & | label2 = QString() , |
||
const QString & | label3 = QString() , |
||
const QString & | label4 = QString() , |
||
const QString & | label5 = QString() , |
||
const QString & | label6 = QString() , |
||
const QString & | labem7 = QString() , |
||
const QString & | label7 = QString() |
||
) |
Definition at line 2194 of file k3listview.cpp.
K3ListViewItem::K3ListViewItem | ( | Q3ListViewItem * | parent, |
Q3ListViewItem * | after, | ||
const QString & | label1, | ||
const QString & | label2 = QString() , |
||
const QString & | label3 = QString() , |
||
const QString & | label4 = QString() , |
||
const QString & | label5 = QString() , |
||
const QString & | label6 = QString() , |
||
const QString & | labem7 = QString() , |
||
const QString & | label7 = QString() |
||
) |
Definition at line 2202 of file k3listview.cpp.
|
virtual |
Definition at line 2210 of file k3listview.cpp.
Member Function Documentation
const QColor & K3ListViewItem::backgroundColor | ( | ) |
returns the background color for this item
Definition at line 2238 of file k3listview.cpp.
QColor K3ListViewItem::backgroundColor | ( | int | column | ) |
returns the background color for this item at given column This can be different in the column which is sorted due to shading
could be merged with above (column = -1) to be source compatible
but will only work if sort-shading is not used or the listView has
only 1 column
Definition at line 2245 of file k3listview.cpp.
|
virtual |
Reimplemented from Q3ListViewItem.
Definition at line 2224 of file k3listview.cpp.
bool K3ListViewItem::isAlternate | ( | ) |
returns true if this item is to be drawn with the alternate background
Definition at line 2271 of file k3listview.cpp.
|
virtual |
Reimplemented from Q3ListViewItem.
Definition at line 2345 of file k3listview.cpp.
|
virtual |
Reimplemented from Q3ListViewItem.
Definition at line 2231 of file k3listview.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.