akonadi
#include <collectionview.h>
Inherits QTreeView.
Signals | |
| void | clicked (const Akonadi::Collection &collection) | 
| void | currentChanged (const Akonadi::Collection &collection) | 
Public Member Functions | |
| CollectionView (QWidget *parent=0) | |
| AKONADI_DEPRECATED | CollectionView (KXmlGuiWindow *xmlGuiWindow, QWidget *parent=0) | 
| CollectionView (KXMLGUIClient *xmlGuiClient, QWidget *parent=0) | |
| virtual | ~CollectionView () | 
| virtual void | setModel (QAbstractItemModel *model) | 
| void | setXmlGuiClient (KXMLGUIClient *xmlGuiClient) | 
| AKONADI_DEPRECATED void | setXmlGuiWindow (KXmlGuiWindow *xmlGuiWindow) | 
Detailed Description
A view to show a collection tree provided by a CollectionModel.
When a KXmlGuiWindow is passed to the constructor, the XMLGUI defined context menu akonadi_collectionview_contextmenu is used if available.
Example:
Definition at line 63 of file collectionview.h.
Constructor & Destructor Documentation
      
  | 
  explicit | 
Creates a new collection view.
- Parameters
 - 
  
parent The parent widget.  
Definition at line 138 of file collectionview.cpp.
      
  | 
  explicit | 
Creates a new collection view.
- Parameters
 - 
  
xmlGuiWindow The KXmlGuiWindow the view is used in. This is needed for the XMLGUI based context menu. Passing 0 is ok and will disable the builtin context menu. parent The parent widget.  
Definition at line 153 of file collectionview.cpp.
      
  | 
  explicit | 
Creates a new collection view.
- Parameters
 - 
  
xmlGuiClient The KXmlGuiClient the view is used in. This is needed for the XMLGUI based context menu. Passing 0 is ok and will disable the builtin context menu. parent The parent widget.  
Definition at line 145 of file collectionview.cpp.
      
  | 
  virtual | 
Destroys the collection view.
Definition at line 161 of file collectionview.cpp.
Member Function Documentation
      
  | 
  signal | 
This signal is emitted whenever the user has clicked a collection in the view.
- Parameters
 - 
  
collection The clicked collection.  
      
  | 
  signal | 
This signal is emitted whenever the current collection in the view has changed.
- Parameters
 - 
  
collection The new current collection.  
| void CollectionView::setXmlGuiClient | ( | KXMLGUIClient * | xmlGuiClient | ) | 
Sets the KXMLGUIClient which the view is used in.
This is needed if you want to use the built-in context menu.
- Parameters
 - 
  
xmlGuiClient The KXMLGUIClient the view is used in.  
- Since
 - 4.3
 
Definition at line 260 of file collectionview.cpp.
| void CollectionView::setXmlGuiWindow | ( | KXmlGuiWindow * | xmlGuiWindow | ) | 
Sets the KXmlGuiWindow which the view is used in.
This is needed if you want to use the built-in context menu.
- Parameters
 - 
  
xmlGuiWindow The KXmlGuiWindow the view is used in.  
Definition at line 265 of file collectionview.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference