• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeplasma-addons API Reference
  • KDE Home
  • Contact Us
 

liblancelot

  • Lancelot
  • CustomListItemFactory
Signals | Public Member Functions | List of all members
Lancelot::CustomListItemFactory Class Referenceabstract

#include <CustomListView.h>

Inheritance diagram for Lancelot::CustomListItemFactory:
Inheritance graph
[legend]

Signals

void itemAltered (int index)
 
void itemDeleted (int index)
 
void itemInserted (int index)
 
void updated ()
 

Public Member Functions

 CustomListItemFactory ()
 
virtual ~CustomListItemFactory ()
 
virtual int itemCount () const =0
 
virtual CustomListItem * itemForIndex (int index)=0
 
virtual int itemHeight (int index, Qt::SizeHint which) const =0
 

Detailed Description

Interface that manages the list model and serves as an interface between the actual data model and CustomList.

Subclasses are responsible for creating and destroying list items. All items must subclass QGraphicsWidget and implement the CustomListItem interface.

Definition at line 53 of file CustomListView.h.

Constructor & Destructor Documentation

Lancelot::CustomListItemFactory::CustomListItemFactory ( )

Definition at line 38 of file CustomListView.cpp.

Lancelot::CustomListItemFactory::~CustomListItemFactory ( )
virtual

Definition at line 42 of file CustomListView.cpp.

Member Function Documentation

void Lancelot::CustomListItemFactory::itemAltered ( int  index)
signal

This signal is emitted when an item is altered.

Parameters
indexindex of the altered item
virtual int Lancelot::CustomListItemFactory::itemCount ( ) const
pure virtual
Returns
number of items

Implemented in Lancelot::ActionListViewItemFactory.

void Lancelot::CustomListItemFactory::itemDeleted ( int  index)
signal

This signal is emitted when an item is deleted from the model.

Parameters
indexindex of the deleted item
virtual CustomListItem* Lancelot::CustomListItemFactory::itemForIndex ( int  index)
pure virtual
Returns
an item for the specified index
Parameters
indexindex

Implemented in Lancelot::ActionListViewItemFactory.

virtual int Lancelot::CustomListItemFactory::itemHeight ( int  index,
Qt::SizeHint  which 
) const
pure virtual
Returns
the height hint for the specified item
Parameters
indexindex of the item
whichwhich hint to return

Implemented in Lancelot::ActionListViewItemFactory.

void Lancelot::CustomListItemFactory::itemInserted ( int  index)
signal

This signal is emitted when an item is inserted into the model.

Parameters
indexplace where the new item is inserted
void Lancelot::CustomListItemFactory::updated ( )
signal

This signal is emitted when the model is updated and the update is too complex to explain using itemInserted, itemDeleted and itemAltered methods.


The documentation for this class was generated from the following files:
  • CustomListView.h
  • CustomListView.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

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

kdeplasma-addons API Reference

Skip menu "kdeplasma-addons API Reference"
  •     GroupingDesktop
  •   liblancelot

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal