Eneboo - Documentación para desarrolladores
|
#include <listviews.h>
Métodos públicos | |
MessageLVI (QListView *parent, const MetaTranslatorMessage &message, const QString &text, const QString &comment, ContextLVI *c) | |
virtual bool | danger () const |
void | setTranslation (const QString &translation) |
void | setFinished (bool finished) |
void | setDanger (bool danger) |
void | setContextLVI (ContextLVI *c) |
ContextLVI * | contextLVI () const |
void | updateTranslationText () |
QString | context () const |
QString | sourceText () const |
QString | comment () const |
QString | translation () const |
bool | finished () const |
MetaTranslatorMessage | message () const |
void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
MessageLVI::MessageLVI | ( | QListView * | parent, |
const MetaTranslatorMessage & | message, | ||
const QString & | text, | ||
const QString & | comment, | ||
ContextLVI * | c | ||
) |
QString MessageLVI::comment | ( | ) | const [inline] |
QString MessageLVI::context | ( | ) | const |
ContextLVI* MessageLVI::contextLVI | ( | ) | const [inline] |
bool MessageLVI::finished | ( | ) | const [inline] |
MetaTranslatorMessage MessageLVI::message | ( | ) | const |
void MessageLVI::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.
void MessageLVI::setContextLVI | ( | ContextLVI * | c | ) | [inline] |
void MessageLVI::setDanger | ( | bool | danger | ) |
void MessageLVI::setFinished | ( | bool | finished | ) |
void MessageLVI::setTranslation | ( | const QString & | translation | ) |
QString MessageLVI::sourceText | ( | ) | const [inline] |
QString MessageLVI::translation | ( | ) | const [inline] |
void MessageLVI::updateTranslationText | ( | ) |