KIconCanvas Class Reference
from PyKDE4.kio import *
Inherits: KListWidget → QListWidget → QListView → QAbstractItemView → QAbstractScrollArea → QFrame → QWidget → QObject
Detailed Description
Icon canvas for KIconDialog.
Signals | |
| finished () | |
| nameChanged (, QString a0) | |
| progress (, int number) | |
| startLoading (, int count) | |
Methods | |
| __init__ (self, QWidget parent=0) | |
| __init__ (self, KIconCanvas a0) | |
| finished (self) | |
| QString | getCurrent (self) |
| loadFiles (self, QStringList files) | |
| nameChanged (self, QString a0) | |
| progress (self, int number) | |
| startLoading (self, int count) | |
| stopLoading (self) | |
Method Documentation
| __init__ | ( | self, | ||
| QWidget | parent=0 | |||
| ) |
Creates a new icon canvas.
- Parameters:
-
parent The parent widget.
| __init__ | ( | self, | ||
| KIconCanvas | a0 | |||
| ) |
| finished | ( | self ) |
This signal is emitted when the loading of the icons has been finished.
- Signal syntax:
QObject.connect(source, SIGNAL("finished()"), target_slot)
| QString getCurrent | ( | self ) |
Returns the current icon.
| loadFiles | ( | self, | ||
| QStringList | files | |||
| ) |
Load icons into the canvas.
| nameChanged | ( | self, | ||
| QString | a0 | |||
| ) |
Emitted when the current icon has changed.
- Signal syntax:
QObject.connect(source, SIGNAL("nameChanged(const QString&)"), target_slot)
| progress | ( | self, | ||
| int | number | |||
| ) |
This signal is emitted whenever an icon has been loaded.
- Parameters:
-
number The number of the currently loaded item.
- Signal syntax:
QObject.connect(source, SIGNAL("progress(int)"), target_slot)
| startLoading | ( | self, | ||
| int | count | |||
| ) |
This signal is emitted when the loading of the icons has started.
- Parameters:
-
count The number of icons to be loaded.
- Signal syntax:
QObject.connect(source, SIGNAL("startLoading(int)"), target_slot)
| stopLoading | ( | self ) |
Call this slot to stop the loading of the icons.
KDE 4.4 PyKDE API Reference