SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / ui / pageitemdelegate.h
blob0b425d00b6e2c05af60aa45476e2ca4a140352ee
1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
3 * *
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
17 Q_OBJECT
19 public:
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;
28 protected:
29 virtual void drawDisplay( QPainter *painter, const QStyleOptionViewItem & option, const QRect & rect, const QString & text ) const;
31 private:
32 class Private;
33 Private * const d;
36 #endif