#include <Plasma/Widgets/ToolButton>
Provides a plasma-themed QToolButton.
Definition at line 39 of file toolbutton.h.
Plasma::ToolButton::~ToolButton |
( |
| ) |
|
QAction* Plasma::ToolButton::action |
( |
| ) |
const |
- Returns
- the currently associated action, if any.
- Since
- 4.3
bool Plasma::ToolButton::autoRaise |
( |
| ) |
const |
- Returns
- true if the toolbutton has an autoraise behaviour
void Plasma::ToolButton::changeEvent |
( |
QEvent * |
event | ) |
|
|
protected |
void Plasma::ToolButton::clicked |
( |
| ) |
|
|
signal |
void Plasma::ToolButton::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
void Plasma::ToolButton::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
QIcon Plasma::ToolButton::icon |
( |
| ) |
const |
- Returns
- the icon of this button
- Since
- 4.3
Definition at line 271 of file toolbutton.cpp.
QString Plasma::ToolButton::image |
( |
| ) |
const |
- Returns
- the image path being displayed currently, or an empty string if none.
bool Plasma::ToolButton::isDown |
( |
| ) |
const |
- Returns
- true if the button is pressed down
- Since
- 4.4
Definition at line 286 of file toolbutton.cpp.
QVariant Plasma::ToolButton::itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
protected |
QToolButton* Plasma::ToolButton::nativeWidget |
( |
| ) |
const |
- Returns
- the native widget wrapped by this ToolButton
void Plasma::ToolButton::pressed |
( |
| ) |
|
|
signal |
void Plasma::ToolButton::released |
( |
| ) |
|
|
signal |
void Plasma::ToolButton::resizeEvent |
( |
QGraphicsSceneResizeEvent * |
event | ) |
|
|
protected |
void Plasma::ToolButton::setAction |
( |
QAction * |
action | ) |
|
Associate an action with this IconWidget this makes the button follow the state of the action, using its icon, text, etc.
when the button is clicked, it will also trigger the action.
- Since
- 4.3
Definition at line 201 of file toolbutton.cpp.
void Plasma::ToolButton::setAutoRaise |
( |
bool |
raise | ) |
|
Sets if the toolbutton has an autoraise behaviour.
- Parameters
-
Definition at line 211 of file toolbutton.cpp.
void Plasma::ToolButton::setDown |
( |
bool |
down | ) |
|
Sets the status of the button to pressed.
- Parameters
-
- Since
- 4.5
Definition at line 281 of file toolbutton.cpp.
void Plasma::ToolButton::setIcon |
( |
const QIcon & |
icon | ) |
|
sets the icon for this toolbutton
- Parameters
-
icon | the icon we want to use |
- Since
- 4.3
Definition at line 266 of file toolbutton.cpp.
void Plasma::ToolButton::setImage |
( |
const QString & |
path | ) |
|
Sets the path to an image to display.
- Parameters
-
path | the path to the image; if a relative path, then a themed image will be loaded. |
Definition at line 232 of file toolbutton.cpp.
void Plasma::ToolButton::setImage |
( |
const QString & |
path, |
|
|
const QString & |
elementid |
|
) |
| |
Sets the path to an svg image to display and the id of the used svg element, if necessary.
- Parameters
-
path | the path to the image; if a relative path, then a themed image will be loaded. |
elementid | the id of a svg element. |
- Since
- 4.4
Definition at line 260 of file toolbutton.cpp.
void Plasma::ToolButton::setStyleSheet |
( |
const QString & |
stylesheet | ) |
|
void Plasma::ToolButton::setText |
( |
const QString & |
text | ) |
|
Sets the display text for this ToolButton.
- Parameters
-
text | the text to display; should be translated. |
Definition at line 221 of file toolbutton.cpp.
QSizeF Plasma::ToolButton::sizeHint |
( |
Qt::SizeHint |
which, |
|
|
const QSizeF & |
constraint |
|
) |
| const |
|
protected |
QString Plasma::ToolButton::styleSheet |
( |
| ) |
|
- Returns
- the stylesheet currently used with this widget
QString Plasma::ToolButton::text |
( |
| ) |
const |
QAction * Plasma::ToolButton::action |
|
readwrite |
qreal Plasma::ToolButton::animationUpdate |
|
readwrite |
bool Plasma::ToolButton::autoRaise |
|
readwrite |
bool Plasma::ToolButton::down |
|
readwrite |
QString Plasma::ToolButton::image |
|
readwrite |
QToolButton * Plasma::ToolButton::nativeWidget |
|
read |
QString Plasma::ToolButton::styleSheet |
|
readwrite |
QString Plasma::ToolButton::text |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.