From a4ede4e0ebaf0bba57da8fc2924577f1a8ff7b54 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 1 Apr 2012 16:42:46 +0200 Subject: Allow showing Nepomuk metadata inside views Metadata like image-size, rating, comments, tags, ... can be shown now in the view (e.g. as column in the Details mode). Still open: The rating-information needs to be shown as stars. In the context of this feature also the following bugs have been fixed: - Fix visual glitches in the header of the Details mode - Improve the minimum column width calculation to respect also the headling and not only the content BUG: 296782 FIXED-IN: 4.9.0 --- src/kitemviews/kitemlistheaderwidget_p.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kitemviews/kitemlistheaderwidget_p.h') diff --git a/src/kitemviews/kitemlistheaderwidget_p.h b/src/kitemviews/kitemlistheaderwidget_p.h index e27106066..f8bba977b 100644 --- a/src/kitemviews/kitemlistheaderwidget_p.h +++ b/src/kitemviews/kitemlistheaderwidget_p.h @@ -59,6 +59,9 @@ public: void setPreferredColumnWidth(const QByteArray& role, qreal width); qreal preferredColumnWidth(const QByteArray& role) const; + void setOffset(qreal offset); + qreal offset() const; + qreal minimumColumnWidth() const; virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); @@ -144,6 +147,7 @@ private: bool m_automaticColumnResizing; KItemModelBase* m_model; + qreal m_offset; QList m_columns; QHash m_columnWidths; QHash m_preferredColumnWidths; -- cgit v1.3