Public Types | Public Member Functions | List of all members
QtSortedCheckListItem Class Reference

This class inherits the QCheckListItem and overrides the compare() function, so that the list can be sorted in numerical order. More...

#include <QtSortedCheckListItem.h>

Inheritance diagram for QtSortedCheckListItem:
Inheritance graph
[legend]
Collaboration diagram for QtSortedCheckListItem:
Collaboration graph
[legend]

Public Types

typedef QCheckListItem::Type Type

Public Member Functions

 activate ()
virtual int compare (QListViewItem *i, int col, bool ascending) const
 enum {Off, NoChange, On}
 enum instead)
 enum {RadioButton, CheckBox, Controller, RadioButtonController=Controller, CheckBoxController}
 isOn () const
 isTristate () const
 paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
 paintFocus (QPainter *p, const QColorGroup &cg, const QRect &r)
 QtSortedCheckListItem (QListView *parent, const QString &text)
 rtti () const
 setOn (bool b)
 setState (ToggleState s)
 setTristate (bool b)
 state () const
 stateChange (bool)
 text () const
 turnOffChild ()
 type () const

Detailed Description

This class inherits the QCheckListItem and overrides the compare() function, so that the list can be sorted in numerical order.

Author
Xie Fang xiefa.nosp@m.ng@s.nosp@m.tanfo.nosp@m.rd.e.nosp@m.du

Definition at line 38 of file QtSortedCheckListItem.h.

Member Typedef Documentation

typedef QCheckListItem::Type Type

Definition at line 47 of file QtSortedCheckListItem.h.

Constructor & Destructor Documentation

QtSortedCheckListItem ( QListView parent,
const QString text 
)

Definition at line 25 of file QtSortedCheckListItem.cxx.

Member Function Documentation

int compare ( QListViewItem i,
int  col,
bool  ascending 
) const
virtual

Definition at line 37 of file QtSortedCheckListItem.cxx.


The documentation for this class was generated from the following files:

Generated for HippoDraw Class Library by doxygen