svn path=/trunk/KDE/kdebase/apps/; revision=791824
m_categoryDrawer = 0;
}
+void DolphinIconsView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
+{
+ KCategorizedView::dataChanged(topLeft, bottomRight);
+
+ KCategorizedSortFilterProxyModel* proxyModel = dynamic_cast<KCategorizedSortFilterProxyModel*>(model());
+ if ((flow() == QListView::LeftToRight) && !proxyModel->isCategorizedModel()) {
+ // bypass a QListView issue that items are not layout correctly if the decoration size of
+ // an index changes
+ scheduleDelayedItemsLayout();
+ }
+}
+
QStyleOptionViewItem DolphinIconsView::viewOptions() const
{
QStyleOptionViewItem viewOptions = KCategorizedView::viewOptions();
explicit DolphinIconsView(QWidget* parent, DolphinController* controller);
virtual ~DolphinIconsView();
+protected slots:
+ virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
+
protected:
virtual QStyleOptionViewItem viewOptions() const;
virtual void contextMenuEvent(QContextMenuEvent* event);