2
* Copyright © 2008 Fredrik Höglund <fredrik@kde.org>
2
* Copyright © 2008, 2009 Fredrik Höglund <fredrik@kde.org>
4
4
* This library is free software; you can redistribute it and/or
5
5
* modify it under the terms of the GNU Library General Public
67
69
virtual void setIconSize(const QSize &iconSize);
68
70
QSize iconSize() const;
72
void setDrawShadows(bool on);
73
bool drawShadows() const;
70
75
QScrollBar *verticalScrollBar() const;
72
77
QRect visibleArea() const;
73
78
virtual QModelIndex indexAt(const QPointF &point) const = 0;
74
79
virtual QRect visualRect(const QModelIndex &index) const = 0;
81
QPointF mapToViewport(const QPointF &point) const;
82
QRectF mapToViewport(const QRectF &rect) const;
83
QPointF mapFromViewport(const QPointF &point) const;
84
QRectF mapFromViewport(const QRectF &rect) const;
86
void markAreaDirty(const QRect &rect);
87
void markAreaDirty(const QRectF &rect) { markAreaDirty(rect.toAlignedRect()); }
76
89
void scrollTo(const QModelIndex &index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible);
77
90
void autoScroll(ScrollDirection direction, int pixelsPerSecond);
78
91
void stopAutoScrolling();
81
94
void activated(const QModelIndex &index);
95
void entered(const QModelIndex &index);
96
void left(const QModelIndex &index);
82
97
void contextMenuRequest(QWidget *widget, const QPoint &screenPos);
85
void markAreaDirty(const QRect &rect);
86
void markAreaDirty(const QRectF &rect) { markAreaDirty(rect.toAlignedRect()); }
87
100
QRect scrollBackBuffer();
88
101
void prepareBackBuffer();
89
102
void syncBackBuffer(QPainter *painter, const QRect &clipRect);
91
QPointF mapToViewport(const QPointF &point) const;
92
QRectF mapToViewport(const QRectF &rect) const;
93
QPointF mapFromViewport(const QPointF &point) const;
94
QRectF mapFromViewport(const QRectF &rect) const;
104
QSize doTextLayout(QTextLayout &layout, const QSize &constraints, Qt::Alignment alignment,
105
QTextOption::WrapMode wrapMode) const;
106
void drawTextLayout(QPainter *painter, const QTextLayout &layout, const QRect &rect) const;
96
108
void timerEvent(QTimerEvent *event);