X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/23b91d0c36d4d8a6726b243276cb7b4fc2169386..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/kcategorizedview.h diff --git a/src/kcategorizedview.h b/src/kcategorizedview.h index 8741a6654..e2bc61d87 100644 --- a/src/kcategorizedview.h +++ b/src/kcategorizedview.h @@ -1,6 +1,6 @@ /** * This file is part of the KDE project - * Copyright (C) 2007 Rafael Fernández López + * Copyright (C) 2007 Rafael Fernández López * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -25,7 +25,7 @@ #include -class KItemCategorizer; +class KCategoryDrawer; /** * @short Item view for listing items @@ -36,7 +36,7 @@ class KItemCategorizer; * * @see KItemCategorizer, KSortFilterProxyModel * - * @author Rafael Fernández López + * @author Rafael Fernández López */ class LIBDOLPHINPRIVATE_EXPORT KCategorizedView : public QListView @@ -50,18 +50,13 @@ public: 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; @@ -90,6 +85,8 @@ protected: virtual void dragLeaveEvent(QDragLeaveEvent *event); + virtual void dropEvent(QDropEvent *event); + virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers); @@ -108,7 +105,7 @@ protected Q_SLOTS: virtual void updateGeometries(); - virtual void slotSortingRoleChanged(); + virtual void slotLayoutChanged(); private: