/**
* This file is part of the KDE project
- * Copyright (C) 2007 Rafael Fernández López <ereslibre@gmail.com>
+ * Copyright (C) 2007 Rafael Fernández López <ereslibre@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
#include <libdolphin_export.h>
-class KItemCategorizer;
+class KCategoryDrawer;
/**
* @short Item view for listing items
*
* @see KItemCategorizer, KSortFilterProxyModel
*
- * @author Rafael Fernández López <ereslibre@gmail.com>
+ * @author Rafael Fernández López <ereslibre@kde.org>
*/
class LIBDOLPHINPRIVATE_EXPORT KCategorizedView
: public QListView
virtual void setModel(QAbstractItemModel *model);
+ void setGridSize(const QSize &size);
+
virtual QRect visualRect(const QModelIndex &index) const;
- /**
- * Will return the current categorizer. If none set, this method will
- * return 0
- */
- KItemCategorizer *itemCategorizer() const;
+ KCategoryDrawer *categoryDrawer() const;
- /**
- * Sets the categorizer to be used. Causes the item view to repaint
- */
- void setItemCategorizer(KItemCategorizer *itemCategorizer);
+ void setCategoryDrawer(KCategoryDrawer *categoryDrawer);
virtual QModelIndex indexAt(const QPoint &point) const;
virtual void dragLeaveEvent(QDragLeaveEvent *event);
+ virtual void dropEvent(QDropEvent *event);
+
virtual QModelIndex moveCursor(CursorAction cursorAction,
Qt::KeyboardModifiers modifiers);
virtual void updateGeometries();
- virtual void slotSortingRoleChanged();
+ virtual void slotLayoutChanged();
+
+ virtual void currentChanged(const QModelIndex ¤t,
+ const QModelIndex &previous);
private: