KDE 4.4 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KColorCells Class Reference

from PyKDE4.kdeui import *

Inherits: QTableWidget → QTableView → QAbstractItemView → QAbstractScrollArea → QFrame → QWidget → QObject

Detailed Description

A table of editable color cells.

Author:
Martin Jones <mjones@kde.org>


Signals

 colorDoubleClicked (int index, QColor color)
 colorSelected (int index, QColor color)

Methods

 __init__ (self, QWidget parent, int rows, int columns)
 __init__ (self, KColorCells a0)
QColor color (self, int index)
 colorDoubleClicked (self, int index, QColor color)
 colorSelected (self, int index, QColor color)
int count (self)
 dragEnterEvent (self, QDragEnterEvent a0)
 dragMoveEvent (self, QDragMoveEvent a0)
 dropEvent (self, QDropEvent a0)
 mouseDoubleClickEvent (self, QMouseEvent a0)
 mouseMoveEvent (self, QMouseEvent a0)
 mousePressEvent (self, QMouseEvent a0)
 mouseReleaseEvent (self, QMouseEvent a0)
int positionToCell (self, QPoint pos, bool ignoreBorders=0)
 resizeEvent (self, QResizeEvent event)
int selectedIndex (self)
 setAcceptDrags (self, bool acceptDrags)
 setColor (self, int index, QColor col)
 setSelected (self, int index)
 setShading (self, bool shade)
int sizeHintForColumn (self, int column)
int sizeHintForRow (self, int column)

Method Documentation

__init__ (  self,
QWidget  parent,
int  rows,
int  columns
)
__init__ (  self,
KColorCells  a0
)
QColor color (  self,
int  index
)

Returns the color at a given index in the table

colorDoubleClicked (  self,
int  index,
QColor  color
)

Emitted when a color in the table is double-clicked

Signal syntax:
QObject.connect(source, SIGNAL("colorDoubleClicked(int, const const QColor&)"), target_slot)
colorSelected (  self,
int  index,
QColor  color
)

Emitted when a color is selected in the table

Signal syntax:
QObject.connect(source, SIGNAL("colorSelected(int, const const QColor&)"), target_slot)
int count (   self )

Returns the total number of color cells in the table

dragEnterEvent (  self,
QDragEnterEvent  a0
)
dragMoveEvent (  self,
QDragMoveEvent  a0
)
dropEvent (  self,
QDropEvent  a0
)
mouseDoubleClickEvent (  self,
QMouseEvent  a0
)
mouseMoveEvent (  self,
QMouseEvent  a0
)
mousePressEvent (  self,
QMouseEvent  a0
)
mouseReleaseEvent (  self,
QMouseEvent  a0
)
int positionToCell (  self,
QPoint  pos,
bool  ignoreBorders=0
)
resizeEvent (  self,
QResizeEvent  event
)
int selectedIndex (   self )

Returns the index of the cell which is currently selected

setAcceptDrags (  self,
bool  acceptDrags
)
setColor (  self,
int  index,
QColor  col
)

Sets the color in the given index in the table

setSelected (  self,
int  index
)

Sets the currently selected cell to index

setShading (  self,
bool  shade
)
int sizeHintForColumn (  self,
int  column
)
int sizeHintForRow (  self,
int  column
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal