Eneboo - Documentación para desarrolladores
|
#include <phraselv.h>
Tipos públicos | |
enum | { SourceTextShown, TargetTextShown, DefinitionText, SourceTextOriginal, TargetTextOriginal } |
Métodos públicos | |
PhraseLVI (PhraseLV *parent, const Phrase &phrase, int accelKey=0) | |
virtual void | setText (int column, const QString &text) |
virtual QString | key (int column, bool ascending) const |
void | setPhrase (const Phrase &phrase) |
Phrase | phrase () const |
int | accelKey () const |
anonymous enum |
int PhraseLVI::accelKey | ( | ) | const [inline] |
Returns a key that can be used for sorting by column column. The default implementation returns text(). Derived classes may also incorporate the order indicated by ascending into this key, although this is not recommended.
If you want to sort on non-alphabetical data, e.g. dates, numbers, etc., it is more efficient to reimplement compare().
Reimplementado de QListViewItem.
Phrase PhraseLVI::phrase | ( | ) | const |
void PhraseLVI::setPhrase | ( | const Phrase & | phrase | ) |
Sets the text in column column to text, if column is a valid column number and text is different from the existing text.
If text() has been reimplemented, this function may be a no-op.
Reimplementado de QListViewItem.