• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kcategorizedview.h

Go to the documentation of this file.
00001 
00021 #ifndef KCATEGORIZEDVIEW_H
00022 #define KCATEGORIZEDVIEW_H
00023 
00024 #include <QtGui/QListView>
00025 
00026 #include <kdeui_export.h>
00027 
00028 class KCategoryDrawer;
00029 
00040 class KDEUI_EXPORT KCategorizedView
00041     : public QListView
00042 {
00043     Q_OBJECT
00044 
00045 public:
00046     KCategorizedView(QWidget *parent = 0);
00047 
00048     ~KCategorizedView();
00049 
00050     virtual void setModel(QAbstractItemModel *model);
00051 
00052     void setGridSize(const QSize &size);
00053 
00054     virtual QRect visualRect(const QModelIndex &index) const;
00055 
00056     KCategoryDrawer *categoryDrawer() const;
00057 
00058     void setCategoryDrawer(KCategoryDrawer *categoryDrawer);
00059 
00060     virtual QModelIndex indexAt(const QPoint &point) const;
00061 
00062 public Q_SLOTS:
00063     virtual void reset();
00064 
00065 protected:
00066     virtual void paintEvent(QPaintEvent *event);
00067 
00068     virtual void resizeEvent(QResizeEvent *event);
00069 
00070     virtual void setSelection(const QRect &rect,
00071                               QItemSelectionModel::SelectionFlags flags);
00072 
00073     virtual void mouseMoveEvent(QMouseEvent *event);
00074 
00075     virtual void mousePressEvent(QMouseEvent *event);
00076 
00077     virtual void mouseReleaseEvent(QMouseEvent *event);
00078 
00079     virtual void leaveEvent(QEvent *event);
00080 
00081     virtual void startDrag(Qt::DropActions supportedActions);
00082 
00083     virtual void dragMoveEvent(QDragMoveEvent *event);
00084 
00085     virtual void dragLeaveEvent(QDragLeaveEvent *event);
00086 
00087     virtual void dropEvent(QDropEvent *event);
00088 
00089     virtual QModelIndex moveCursor(CursorAction cursorAction,
00090                                    Qt::KeyboardModifiers modifiers);
00091 
00092 protected Q_SLOTS:
00093     virtual void rowsInserted(const QModelIndex &parent,
00094                               int start,
00095                               int end);
00096 
00097     virtual void rowsInsertedArtifficial(const QModelIndex &parent,
00098                                          int start,
00099                                          int end);
00100 
00101     virtual void rowsRemoved(const QModelIndex &parent,
00102                              int start,
00103                              int end);
00104 
00105     virtual void updateGeometries();
00106 
00107     virtual void slotLayoutChanged();
00108 
00109     virtual void currentChanged(const QModelIndex &current,
00110                                 const QModelIndex &previous);
00111 
00112     virtual void dataChanged(const QModelIndex &topLeft,
00113                              const QModelIndex &bottomRight);
00114 
00115 private:
00116     class Private;
00117     Private *d;
00118 };
00119 
00120 #endif // KCATEGORIZEDVIEW_H

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal