Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QString Q3ListViewItem::key ( int  column,
bool  ascending 
) const [virtual]

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().

See also:
compare(), sortChildItems()

Definition at line 1267 of file q3listview.cpp.

References text().

Referenced by compare().

{
    return text(column);
}


Generated by  Doxygen 1.6.0   Back to index