#include <KoDocumentSectionDelegate.h>
Graphe de collaboration de KoDocumentSectionDelegate:
Fonctions membres publiques | |
| KoDocumentSectionDelegate (KoDocumentSectionView *view, QObject *parent=0) | |
| virtual | ~KoDocumentSectionDelegate () |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
| virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual void | setEditorData (QWidget *editor, const QModelIndex &index) const |
| virtual void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const |
| virtual void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Fonctions membres protégées | |
| virtual bool | eventFilter (QObject *object, QEvent *event) |
Types privés | |
| typedef QAbstractItemDelegate | super |
| typedef KoDocumentSectionModel | Model |
| typedef KoDocumentSectionView | View |
Fonctions membres privées | |
| int | thumbnailHeight (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| int | availableWidth (const QModelIndex &index) const |
| int | textBoxHeight (const QStyleOptionViewItem &option) const |
| QRect | textRect (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| QRect | iconsRect (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| QRect | thumbnailRect (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| QRect | decorationRect (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| void | drawText (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| void | drawIcons (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| void | drawThumbnail (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| void | drawDecoration (QPainter *p, const QStyleOptionViewItem &option, const QModelIndex &index) const |
Fonctions membres privées statiques | |
| static QStyleOptionViewItem | getOptions (const QStyleOptionViewItem &option, const QModelIndex &index) |
Attributs privés | |
| Private *const | d |
Classes | |
| class | Private |
Définition à la ligne 31 du fichier KoDocumentSectionDelegate.h.
typedef QAbstractItemDelegate KoDocumentSectionDelegate::super [private] |
Définition à la ligne 33 du fichier KoDocumentSectionDelegate.h.
typedef KoDocumentSectionModel KoDocumentSectionDelegate::Model [private] |
Définition à la ligne 55 du fichier KoDocumentSectionDelegate.h.
typedef KoDocumentSectionView KoDocumentSectionDelegate::View [private] |
Définition à la ligne 56 du fichier KoDocumentSectionDelegate.h.
| KoDocumentSectionDelegate::KoDocumentSectionDelegate | ( | KoDocumentSectionView * | view, | |
| QObject * | parent = 0 | |||
| ) |
Définition à la ligne 44 du fichier KoDocumentSectionDelegate.cpp.
Références d, et KoDocumentSectionDelegate::Private::view.
| KoDocumentSectionDelegate::~KoDocumentSectionDelegate | ( | ) | [virtual] |
| void KoDocumentSectionDelegate::paint | ( | QPainter * | painter, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 76 du fichier KoDocumentSectionDelegate.cpp.
Références drawDecoration(), drawIcons(), drawText(), drawThumbnail(), et getOptions().
Voici le graphe d'appel pour cette fonction :
| QSize KoDocumentSectionDelegate::sizeHint | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 58 du fichier KoDocumentSectionDelegate.cpp.
Références availableWidth(), d, KoDocumentSectionView::DetailedMode, KoDocumentSectionView::displayMode(), KoPageFormat::height(), KoDocumentSectionDelegate::Private::margin, KoDocumentSectionView::MinimalMode, textBoxHeight(), thumbnailHeight(), KoDocumentSectionView::ThumbnailMode, et KoDocumentSectionDelegate::Private::view.
Voici le graphe d'appel pour cette fonction :
| bool KoDocumentSectionDelegate::editorEvent | ( | QEvent * | event, | |
| QAbstractItemModel * | model, | |||
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | [virtual] |
Définition à la ligne 95 du fichier KoDocumentSectionDelegate.cpp.
Références d, iconsRect(), KoDocumentSectionDelegate::Private::margin, KoDocumentSectionModel::PropertiesRole, KoItemToolTip::showTip(), textRect(), KoDocumentSectionDelegate::Private::tip, et KoDocumentSectionDelegate::Private::view.
Référencé par KoDocumentSectionView::viewportEvent().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| QWidget * KoDocumentSectionDelegate::createEditor | ( | QWidget * | parent, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 156 du fichier KoDocumentSectionDelegate.cpp.
Références d, et KoDocumentSectionDelegate::Private::edit.
| void KoDocumentSectionDelegate::setEditorData | ( | QWidget * | editor, | |
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 163 du fichier KoDocumentSectionDelegate.cpp.
| void KoDocumentSectionDelegate::setModelData | ( | QWidget * | editor, | |
| QAbstractItemModel * | model, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 171 du fichier KoDocumentSectionDelegate.cpp.
| void KoDocumentSectionDelegate::updateEditorGeometry | ( | QWidget * | editor, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [virtual] |
Définition à la ligne 179 du fichier KoDocumentSectionDelegate.cpp.
Références textRect().
Voici le graphe d'appel pour cette fonction :
| bool KoDocumentSectionDelegate::eventFilter | ( | QObject * | object, | |
| QEvent * | event | |||
| ) | [protected, virtual] |
Définition à la ligne 188 du fichier KoDocumentSectionDelegate.cpp.
Références d, et KoDocumentSectionDelegate::Private::edit.
| QStyleOptionViewItem KoDocumentSectionDelegate::getOptions | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | [static, private] |
Définition à la ligne 230 du fichier KoDocumentSectionDelegate.cpp.
Référencé par paint().
Voici le graphe d'appel pour cette fonction :
| int KoDocumentSectionDelegate::thumbnailHeight | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 252 du fichier KoDocumentSectionDelegate.cpp.
Références availableWidth(), Py::int, testguiform::size, et KoPageFormat::width().
Référencé par sizeHint(), et thumbnailRect().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| int KoDocumentSectionDelegate::availableWidth | ( | const QModelIndex & | index | ) | const [private] |
Définition à la ligne 264 du fichier KoDocumentSectionDelegate.cpp.
Référencé par sizeHint(), et thumbnailHeight().
Voici le graphe d'appel pour cette fonction :
| int KoDocumentSectionDelegate::textBoxHeight | ( | const QStyleOptionViewItem & | option | ) | const [private] |
Définition à la ligne 284 du fichier KoDocumentSectionDelegate.cpp.
Référencé par decorationRect(), iconsRect(), sizeHint(), et textRect().
Voici le graphe d'appel pour cette fonction :
| QRect KoDocumentSectionDelegate::textRect | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 289 du fichier KoDocumentSectionDelegate.cpp.
Références d, decorationRect(), KoDocumentSectionView::DetailedMode, KoDocumentSectionView::displayMode(), gensymbolfontmap::f, iconsRect(), KoDocumentSectionDelegate::Private::margin, textBoxHeight(), KoDocumentSectionView::ThumbnailMode, KoDocumentSectionDelegate::Private::view, et KoPageFormat::width().
Référencé par drawText(), editorEvent(), et updateEditorGeometry().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| QRect KoDocumentSectionDelegate::iconsRect | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 318 du fichier KoDocumentSectionDelegate.cpp.
Références d, KoDocumentSectionView::DetailedMode, KoDocumentSectionView::displayMode(), KoDocumentSectionDelegate::Private::margin, KoDocumentSectionModel::PropertiesRole, textBoxHeight(), KoDocumentSectionView::ThumbnailMode, thumbnailRect(), et KoDocumentSectionDelegate::Private::view.
Référencé par drawIcons(), editorEvent(), et textRect().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| QRect KoDocumentSectionDelegate::thumbnailRect | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 337 du fichier KoDocumentSectionDelegate.cpp.
Références d, KoDocumentSectionView::displayMode(), thumbnailHeight(), KoDocumentSectionView::ThumbnailMode, et KoDocumentSectionDelegate::Private::view.
Référencé par decorationRect(), drawThumbnail(), et iconsRect().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| QRect KoDocumentSectionDelegate::decorationRect | ( | const QStyleOptionViewItem & | option, | |
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 345 du fichier KoDocumentSectionDelegate.cpp.
Références KoDocumentSectionModel::ActiveRole, d, KoDocumentSectionView::DetailedMode, KoDocumentSectionView::displayMode(), KoDocumentSectionDelegate::Private::margin, KoDocumentSectionView::MinimalMode, textBoxHeight(), KoDocumentSectionView::ThumbnailMode, thumbnailRect(), KoDocumentSectionDelegate::Private::view, et KoPageFormat::width().
Référencé par drawDecoration(), et textRect().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| void KoDocumentSectionDelegate::drawText | ( | QPainter * | p, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 376 du fichier KoDocumentSectionDelegate.cpp.
Références KoDocumentSectionModel::ActiveRole, d, gensymbolfontmap::f, KoDocumentSectionDelegate::Private::margin, et textRect().
Référencé par paint().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| void KoDocumentSectionDelegate::drawIcons | ( | QPainter * | p, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 402 du fichier KoDocumentSectionDelegate.cpp.
Références d, iconsRect(), KoDocumentSectionDelegate::Private::margin, et KoDocumentSectionModel::PropertiesRole.
Référencé par paint().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| void KoDocumentSectionDelegate::drawThumbnail | ( | QPainter * | p, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 423 du fichier KoDocumentSectionDelegate.cpp.
Références KoDocumentSectionModel::AspectRatioRole, KoDocumentSectionModel::BeginThumbnailRole, et thumbnailRect().
Référencé par paint().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
| void KoDocumentSectionDelegate::drawDecoration | ( | QPainter * | p, | |
| const QStyleOptionViewItem & | option, | |||
| const QModelIndex & | index | |||
| ) | const [private] |
Définition à la ligne 444 du fichier KoDocumentSectionDelegate.cpp.
Références decorationRect().
Référencé par paint().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
Private* const KoDocumentSectionDelegate::d [private] |
Définition à la ligne 57 du fichier KoDocumentSectionDelegate.h.
Référencé par createEditor(), decorationRect(), drawIcons(), drawText(), editorEvent(), eventFilter(), iconsRect(), KoDocumentSectionDelegate(), sizeHint(), textRect(), thumbnailRect(), et ~KoDocumentSectionDelegate().
1.5.1-p1