|
Quark
0.1
|
An item delegate that displays title text (in a larger font) and description text (in a smaller font). More...
#include <TitleAndDescriptionDelegate.h++>

Public Member Functions | |
| TitleAndDescriptionDelegate (QWidget *parent=NULL) | |
| Constructs a new TitleAndDescriptionDelegate. More... | |
| virtual | ~TitleAndDescriptionDelegate () |
| Destructor. More... | |
| void | setMaxDetailLines (int maxLines) |
| Sets the maximum number of lines of description text that will be displayed. More... | |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Specified by QAbstractItemDelegate. More... | |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| Specified by QAbstractItemDelegate. More... | |
Static Public Attributes | |
| static const int | DEFAULT_MAX_LINES |
| The default maximum number of lines of description text that will be displayed. More... | |
An item delegate that displays title text (in a larger font) and description text (in a smaller font).
| TitleAndDescriptionDelegate | ( | QWidget * | parent = NULL | ) |
Constructs a new TitleAndDescriptionDelegate.
|
virtual |
Destructor.
|
virtual |
Specified by QAbstractItemDelegate.
| void setMaxDetailLines | ( | int | maxLines | ) |
Sets the maximum number of lines of description text that will be displayed.
| maxLines | The maximum number of lines. |
|
virtual |
Specified by QAbstractItemDelegate.
|
static |
The default maximum number of lines of description text that will be displayed.