akonadi
#include <entitylistview.h>
Inherits QListView.
Signals | |
| void | clicked (const Akonadi::Collection &collection) | 
| void | clicked (const Akonadi::Item &item) | 
| void | currentChanged (const Akonadi::Collection &collection) | 
| void | currentChanged (const Akonadi::Item &item) | 
| void | doubleClicked (const Akonadi::Collection &collection) | 
| void | doubleClicked (const Akonadi::Item &item) | 
Public Member Functions | |
| EntityListView (QWidget *parent=0) | |
| EntityListView (KXMLGUIClient *xmlGuiClient, QWidget *parent=0) | |
| virtual | ~EntityListView () | 
| bool | isDropActionMenuEnabled () const | 
| void | setDropActionMenuEnabled (bool enabled) | 
| virtual void | setModel (QAbstractItemModel *model) | 
| void | setXmlGuiClient (KXMLGUIClient *xmlGuiClient) | 
| KXMLGUIClient * | xmlGuiClient () const | 
Detailed Description
A view to show an item/collection list provided by an EntityTreeModel.
When a KXmlGuiWindow is passed to the constructor, the XMLGUI defined context menu akonadi_collectionview_contextmenu or akonadi_itemview_contextmenu is used if available.
Example:
- Since
 - 4.4
 
Definition at line 75 of file entitylistview.h.
Constructor & Destructor Documentation
      
  | 
  explicit | 
Creates a new favorite collections view.
- Parameters
 - 
  
parent The parent widget.  
Definition at line 149 of file entitylistview.cpp.
      
  | 
  explicit | 
Creates a new favorite collections 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 157 of file entitylistview.cpp.
      
  | 
  virtual | 
Destroys the favorite collections view.
Definition at line 165 of file entitylistview.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 user has clicked an item in the view.
- Parameters
 - 
  
item The clicked item.  
      
  | 
  signal | 
This signal is emitted whenever the current collection in the view has changed.
- Parameters
 - 
  
collection The new current collection.  
      
  | 
  signal | 
This signal is emitted whenever the current item in the view has changed.
- Parameters
 - 
  
item The new current item.  
      
  | 
  signal | 
This signal is emitted whenever the user has double clicked a collection in the view.
- Parameters
 - 
  
collection The double clicked collection.  
      
  | 
  signal | 
This signal is emitted whenever the user has double clicked an item in the view.
- Parameters
 - 
  
item The double clicked item.  
| bool EntityListView::isDropActionMenuEnabled | ( | ) | const | 
Returns whether the drop action menu is enabled and will be shown on drop operation.
- Since
 - 4.7
 
Definition at line 264 of file entitylistview.cpp.
| void EntityListView::setDropActionMenuEnabled | ( | bool | enabled | ) | 
Sets whether the drop action menu is enabled and will be shown on drop operation. 
- Parameters
 - 
  
enabled enables drop action menu if set as true 
- Since
 - 4.7
 
Definition at line 257 of file entitylistview.cpp.
      
  | 
  virtual | 
- Reimplemented from superclass.
 
- Parameters
 - 
  
model the model to set  
Definition at line 171 of file entitylistview.cpp.
| void EntityListView::setXmlGuiClient | ( | KXMLGUIClient * | xmlGuiClient | ) | 
Sets the XML GUI client 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.  
Definition at line 240 of file entitylistview.cpp.
| KXMLGUIClient * EntityListView::xmlGuiClient | ( | ) | const | 
Return the XML GUI client which the view is used in.
- Since
 - 4.12
 
Definition at line 245 of file entitylistview.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