akonadi
#include <itemview.h>
Inherits QTreeView.
Signals | |
void | activated (const Akonadi::Item &item) |
void | clicked (const Akonadi::Item &item) |
void | currentChanged (const Akonadi::Item &item) |
void | doubleClicked (const Akonadi::Item &item) |
Public Member Functions | |
ItemView (QWidget *parent=0) | |
AKONADI_DEPRECATED | ItemView (KXmlGuiWindow *xmlGuiWindow, QWidget *parent=0) |
ItemView (KXMLGUIClient *xmlGuiClient, QWidget *parent=0) | |
virtual | ~ItemView () |
virtual void | setModel (QAbstractItemModel *model) |
void | setXmlGuiClient (KXMLGUIClient *xmlGuiClient) |
AKONADI_DEPRECATED void | setXmlGuiWindow (KXmlGuiWindow *xmlGuiWindow) |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
Detailed Description
A view to show an item list provided by an ItemModel.
When a KXmlGuiWindow is set, the XMLGUI defined context menu akonadi_itemview_contextmenu
is used if available.
Example:
Definition at line 60 of file itemview.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new item view.
- Parameters
-
parent The parent widget.
Definition at line 136 of file itemview.cpp.
|
explicit |
Creates a new item view.
- Parameters
-
xmlGuiWindow The KXmlGuiWindow this 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 143 of file itemview.cpp.
|
explicit |
Creates a new item view.
- Parameters
-
xmlGuiClient The KXMLGUIClient this 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.
- Since
- 4.3
Definition at line 151 of file itemview.cpp.
|
virtual |
Destroys the item view.
Definition at line 159 of file itemview.cpp.
Member Function Documentation
|
signal |
This signal is emitted whenever the user has activated an item in the view.
- Parameters
-
item The activated item.
|
signal |
This signal is emitted whenever the user clicked on an item in the view.
- Parameters
-
item The item the user clicked on.
- Since
- 4.3
|
signal |
This signal is emitted whenever the current item in the view has changed.
- Parameters
-
item The current item.
|
signal |
This signal is emitted whenever the user double clicked on an item in the view.
- Parameters
-
item The item the user double clicked on.
- Since
- 4.3
void ItemView::setXmlGuiClient | ( | KXMLGUIClient * | xmlGuiClient | ) |
Sets the KXMLGUIFactory which this view is used in.
This is needed if you want to use the built-in context menu.
- Parameters
-
xmlGuiClient The KXMLGUIClient this view is used in.
Definition at line 187 of file itemview.cpp.
void ItemView::setXmlGuiWindow | ( | KXmlGuiWindow * | xmlGuiWindow | ) |
Sets the KXmlGuiWindow which this view is used in.
This is needed if you want to use the built-in context menu.
- Parameters
-
xmlGuiWindow The KXmlGuiWindow this view is used in.
Definition at line 182 of file itemview.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:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.