KDataToolAction Class Reference
from PyKDE4.kio import *
Inherits: KAction → QWidgetAction → QAction → QObject
Detailed Description
Signals | |
toolActivated (KDataToolInfo info, QString command) | |
Methods | |
__init__ (self, QString text, KDataToolInfo info, QString command, QObject parent) | |
slotActivated (self) | |
toolActivated (self, KDataToolInfo info, QString command) | |
Static Methods | |
[QActio] | dataToolActionList ([KDataToolInfo] tools, QObject receiver, QString slot, KActionCollection parent) |
Method Documentation
__init__ | ( | self, | ||
QString | text, | |||
KDataToolInfo | info, | |||
QString | command, | |||
QObject | parent | |||
) |
Constructs a new KDataToolAction.
- Parameters:
-
text The text that will be displayed info The corresponding KDataToolInfo command The command of the action parent This action's parent name The name of the action
[QActio] dataToolActionList | ( | [KDataToolInfo] | tools, | |
QObject | receiver, | |||
QString | slot, | |||
KActionCollection | parent | |||
) |
Creates a list of actions from a list of information about data-tools. The slot must have a signature corresponding to the toolActivated signal.
Note that it's the caller's responsibility to delete the actions when they're not needed anymore.
- Parameters:
-
tools the list of data tool descriptions receiver the receiver for toolActivated() signals slot the slot that will receive the toolActivated() signals parent the parent action collection for the actions to be created
- Returns:
- the KActions
slotActivated | ( | self ) |
toolActivated | ( | self, | ||
KDataToolInfo | info, | |||
QString | command | |||
) |
Emitted when a tool has been activated.
- Parameters:
-
info a description of the activated tools command the command for the tool
- Signal syntax:
QObject.connect(source, SIGNAL("toolActivated(const KDataToolInfo&, const QString&)"), target_slot)