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

liblancelot

  • Lancelot
  • CustomList
Signals | Public Member Functions | Protected Slots | List of all members
Lancelot::CustomList Class Reference

#include <CustomListView.h>

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

Signals

void sizeChanged ()
 

Public Member Functions

 CustomList (QGraphicsItem *parent=NULL)
 
 CustomList (CustomListItemFactory *factory, QGraphicsItem *parent=NULL)
 
virtual ~CustomList ()
 
int itemAtPosition (int y) const
 
CustomListItemFactory * itemFactory () const
 
qreal margin (Plasma::MarginEdge margin)
 
L_Override qreal scrollUnit (Qt::Orientation direction) const
 
void setItemFactory (CustomListItemFactory *factory)
 
void setMargin (Plasma::MarginEdge margin, qreal value)
 
L_Override QSizeF sizeFor (QSizeF viewportSize) const
 
L_Override void viewportChanged (QRectF viewport)
 
- Public Member Functions inherited from Lancelot::Scrollable
 Scrollable ()
 
virtual ~Scrollable ()
 
virtual ScrollPane * scrollPane () const
 
virtual void setScrollPane (ScrollPane *pane)
 

Protected Slots

void factoryItemAltered (int position)
 
void factoryItemDeleted (int position)
 
void factoryItemInserted (int position)
 
void factoryUpdated ()
 

Detailed Description

Class that does the layouting of items in the list.

The list implements the Scrollable interface. Supports resizing items to best fit scroll pane viewport. It doesn't scroll by itself.

Definition at line 110 of file CustomListView.h.

Constructor & Destructor Documentation

Lancelot::CustomList::CustomList ( QGraphicsItem *  parent = NULL)

Definition at line 183 of file CustomListView.cpp.

Lancelot::CustomList::CustomList ( CustomListItemFactory *  factory,
QGraphicsItem *  parent = NULL 
)
explicit

Definition at line 188 of file CustomListView.cpp.

Lancelot::CustomList::~CustomList ( )
virtual

Definition at line 194 of file CustomListView.cpp.

Member Function Documentation

void Lancelot::CustomList::factoryItemAltered ( int  position)
protectedslot

Definition at line 298 of file CustomListView.cpp.

void Lancelot::CustomList::factoryItemDeleted ( int  position)
protectedslot

Definition at line 292 of file CustomListView.cpp.

void Lancelot::CustomList::factoryItemInserted ( int  position)
protectedslot

Definition at line 286 of file CustomListView.cpp.

void Lancelot::CustomList::factoryUpdated ( )
protectedslot

Definition at line 304 of file CustomListView.cpp.

int Lancelot::CustomList::itemAtPosition ( int  y) const

Definition at line 224 of file CustomListView.cpp.

CustomListItemFactory * Lancelot::CustomList::itemFactory ( ) const

Definition at line 237 of file CustomListView.cpp.

qreal Lancelot::CustomList::margin ( Plasma::MarginEdge  margin)

Definition at line 315 of file CustomListView.cpp.

qreal Lancelot::CustomList::scrollUnit ( Qt::Orientation  direction) const
virtual
Parameters
directiondirection for which the scroll unit size is needed
Returns
scroll unit size

Implements Lancelot::Scrollable.

Definition at line 280 of file CustomListView.cpp.

void Lancelot::CustomList::setItemFactory ( CustomListItemFactory *  factory)

Definition at line 199 of file CustomListView.cpp.

void Lancelot::CustomList::setMargin ( Plasma::MarginEdge  margin,
qreal  value 
)

Definition at line 309 of file CustomListView.cpp.

void Lancelot::CustomList::sizeChanged ( )
signal
QSizeF Lancelot::CustomList::sizeFor ( QSizeF  viewportSize) const
virtual
Returns
the desired size of the Scrollable widget when the container provides it with a specified viewport size
  • viewportSize viewport size

Implements Lancelot::Scrollable.

Definition at line 242 of file CustomListView.cpp.

void Lancelot::CustomList::viewportChanged ( QRectF  viewport)
virtual

Sets the currently displayed area.

This function tells the Scrollable widget which part of it is shown after scrolling.

Note
The size of the scrolling viewport doesn't need to be equal to ScrollPane::viewportSize()
Parameters
viewportnew viewport rectangle

Implements Lancelot::Scrollable.

Definition at line 253 of file CustomListView.cpp.


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