Plasma
iconwidget.h
Go to the documentation of this file.
void setMinimumIconSize(const QSizeF &size)
Set the size that should be the minimum beyond the icon shouldn't scale when the icon will be when po...
Definition iconwidget.cpp:1359
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
Definition iconwidget.cpp:681
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
Definition iconwidget.cpp:1433
void setAction(QAction *action)
Associate an action with this IconWidget this makes the IconWidget follow the state of the action,...
Definition iconwidget.cpp:458
void setOrientation(Qt::Orientation orientation)
let set the orientation of the icon Qt::Vertical: text under the icon Qt::Horizontal text at a side o...
Definition iconwidget.cpp:1550
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition iconwidget.cpp:1470
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition iconwidget.cpp:1386
void setText(const QString &text)
Sets the text associated with this icon.
Definition iconwidget.cpp:1267
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition iconwidget.cpp:1413
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition iconwidget.cpp:1484
bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Definition iconwidget.cpp:1514
void doubleClicked()
Indicates when the icon has been double-clicked.
void removeIconAction(QAction *action)
Removes a previously set iconAction.
Definition iconwidget.cpp:430
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition iconwidget.cpp:1498
void setMaximumIconSize(const QSizeF &size)
Set the size that should be the maximum beyond the icon shouldn't scale when the icon will be when po...
Definition iconwidget.cpp:1370
void setPressed(bool pressed=true)
Sets the appearance of the icon to pressed or restores the appearance to normal.
Definition iconwidget.cpp:1527
void setInfoText(const QString &text)
Sets the additional information to be displayed by this icon.
Definition iconwidget.cpp:1288
void setSvg(const QString &svgFilePath, const QString &svgIconElement=QString())
Convenience method to set the svg image to use when given the filepath and name of svg.
Definition iconwidget.cpp:634
void addIconAction(QAction *action)
Plasma::IconWidget allows the user to specify a number of actions (currently four) to be displayed ar...
Definition iconwidget.cpp:415
void setDrawBackground(bool draw)
Sets whether or not to draw a background area for the icon.
Definition iconwidget.cpp:482
void setNumDisplayLines(int numLines)
Definition iconwidget.cpp:473
void setTextBackgroundColor(const QColor &color)
Sets the color to use behind the text of the icon.
Definition iconwidget.cpp:1230
void activated()
Indicates when the icon has been activated following the single or doubleclick settings.
void setPreferredIconSize(const QSizeF &size)
Set the size you prefer the icon will be when positioned in a layout.
Definition iconwidget.cpp:1348
void invertLayout(bool invert)
inverts the layout of the icons if the orientation is horizontal, normally we get icon on the left wi...
Definition iconwidget.cpp:1561
void changed()
Indicates that something about the icon may have changed (image, text, etc) only actually works for i...
void setIcon(const QIcon &icon)
Sets the graphical icon for this Plasma::IconWidget.
Definition iconwidget.cpp:1324
void drawActionButtonBase(QPainter *painter, const QSize &size, int element)
Definition iconwidget.cpp:1242
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition iconwidget.cpp:1136
Q_INVOKABLE QSizeF sizeFromIconSize(const qreal iconWidth) const
Definition iconwidget.cpp:1571
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.