Eneboo - Documentación para desarrolladores
|
#include <listviews.h>
Métodos públicos | |
ContextLVI (QListView *lv, const QString &context) | |
virtual bool | danger () const |
void | appendToComment (const QString &x) |
void | incrementUnfinishedCount () |
void | decrementUnfinishedCount () |
void | incrementDangerCount () |
void | decrementDangerCount () |
void | incrementObsoleteCount () |
bool | isContextObsolete () |
void | updateStatus () |
QString | context () const |
QString | comment () const |
QString | fullContext () const |
bool | finished () const |
MessageLVI * | firstMessageItem () |
MessageLVI * | nextMessageItem () |
MessageLVI * | takeMessageItem (int i) |
void | appendMessageItem (QListView *lv, MessageLVI *i) |
void | instantiateMessageItem (QListView *lv, MessageLVI *i) |
int | messageItemsInList () |
void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
void ContextLVI::appendMessageItem | ( | QListView * | lv, |
MessageLVI * | i | ||
) |
void ContextLVI::appendToComment | ( | const QString & | x | ) |
QString ContextLVI::comment | ( | ) | const [inline] |
QString ContextLVI::context | ( | ) | const [inline] |
void ContextLVI::decrementDangerCount | ( | ) |
void ContextLVI::decrementUnfinishedCount | ( | ) |
bool ContextLVI::finished | ( | ) | const [inline] |
MessageLVI* ContextLVI::firstMessageItem | ( | ) | [inline] |
QString ContextLVI::fullContext | ( | ) | const |
void ContextLVI::incrementDangerCount | ( | ) |
void ContextLVI::incrementObsoleteCount | ( | ) |
void ContextLVI::incrementUnfinishedCount | ( | ) |
void ContextLVI::instantiateMessageItem | ( | QListView * | lv, |
MessageLVI * | i | ||
) |
bool ContextLVI::isContextObsolete | ( | ) |
int ContextLVI::messageItemsInList | ( | ) | [inline] |
MessageLVI* ContextLVI::nextMessageItem | ( | ) | [inline] |
void ContextLVI::paintCell | ( | QPainter * | p, |
const QColorGroup & | cg, | ||
int | column, | ||
int | width, | ||
int | align | ||
) | [virtual] |
This virtual function paints the contents of one column of an item and aligns it as described by align.
p is a QPainter open on the relevant paint device. p is translated so (0, 0) is the top-left pixel in the cell and width-1, height()-1 is the bottom-right pixel in the cell. The other properties of p (pen, brush, etc) are undefined. cg is the color group to use. column is the logical column number within the item that is to be painted; 0 is the column which may contain a tree.
This function may use QListView::itemMargin() for readability spacing on the left and right sides of data such as text, and should honor isSelected() and QListView::allColumnsShowFocus().
If you reimplement this function, you should also reimplement width().
The rectangle to be painted is in an undefined state when this function is called, so you must draw on all the pixels. The painter p has the right font on entry.
Reimplementado de QListViewItem.
MessageLVI* ContextLVI::takeMessageItem | ( | int | i | ) | [inline] |
void ContextLVI::updateStatus | ( | ) |