1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef PAGEITEMDELEGATE_H
11 #define PAGEITEMDELEGATE_H
13 #include <QItemDelegate>
15 class PageItemDelegate
: public QItemDelegate
20 PageItemDelegate( QObject
* parent
= 0 );
21 virtual ~PageItemDelegate();
23 static const int PageRole
= 0x000f0001;
24 static const int PageLabelRole
= 0x000f0002;
26 virtual void paint( QPainter
*painter
, const QStyleOptionViewItem
& option
, const QModelIndex
& index
) const;
29 virtual void drawDisplay( QPainter
*painter
, const QStyleOptionViewItem
& option
, const QRect
& rect
, const QString
& text
) const;