Libplasma
plasmoiditem.cpp
54 // This can happen only if the client QML code declares a PlasmoidItem somewhere else than the root object
58 connect(applet, &Plasma::Applet::contextualActionsAboutToShow, this, &PlasmoidItem::contextualActionsAboutToShow);
67 connect(applet->containment(), &Plasma::Containment::screenChanged, this, &PlasmoidItem::screenChanged);
69 connect(applet->containment()->corona(), &Plasma::Corona::screenGeometryChanged, this, [this](int id) {
75 connect(applet->containment()->corona(), &Plasma::Corona::availableScreenRegionChanged, this, &ContainmentItem::availableScreenRegionChanged);
76 connect(applet->containment()->corona(), &Plasma::Corona::availableScreenRectChanged, this, &ContainmentItem::availableScreenRectChanged);
259 if (!applet() || !applet()->containment() || !applet()->containment()->corona() || applet()->containment()->screen() < 0) {
void titleChanged(const QString &title)
Emitted when the title has changed.
void activated()
Emitted when activation is requested due to, for example, a global keyboard shortcut.
void destroyedChanged(bool destroyed)
Emitted when the applet has been scheduled for destruction or the destruction has been undone.
void contextualActionsAboutToShow()
Emitted just before the contextual actions are about to show For instance just before the context men...
virtual QList< QAction * > contextualActions()
Implement this to provide a list of actions that can be added to another menu for example,...
Definition containmentactions.cpp:102
static QString eventToString(QEvent *event)
Turns a mouse or wheel event into a string suitable for a ContainmentActions.
Definition containmentactions.cpp:107
The base class for plugins that provide backgrounds and applet grouping containers.
Definition containment.h:47
QHash< QString, ContainmentActions * > & containmentActions()
Definition containment.cpp:627
void screenChanged(int newScreen)
This signal indicates that a containment has been associated (or dissociated) with a physical screen.
void availableScreenRegionChanged(int id)
This signal indicates that a change in available screen geometry occurred.
void screenGeometryChanged(int id)
This signal indicates that a change in geometry for the screen occurred.
void availableScreenRectChanged(int id)
This signal indicates that a change in available screen geometry occurred.
void contextualActionsAboutToShow()
Emitted just before the contextual actions are about to show For instance just before the context men...
Q_INVOKABLE void prepareContextualActions()
Should be called before retrieving any action to ensure contents are up to date.
Definition plasmoiditem.cpp:389
QRect screenGeometry
Provides access to the geometry of the applet is in.
Definition plasmoiditem.h:89
QQuickItem * toolTipItem
This allows to set fully custom QML item as the tooltip.
Definition plasmoiditem.h:76
QVariantList availableScreenRegion
The available region of this screen, panels excluded.
Definition plasmoiditem.h:109
QString toolTipMainText
The QML root object defined in the applet main.qml will be direct child of an PlasmoidItem instance.
Definition plasmoiditem.h:52
bool hideOnWindowDeactivate
Whether the dialog should be hidden when the dialog loses focus.
Definition plasmoiditem.h:97
QRect availableScreenRect
screen area free of panels: the coordinates are relative to the containment, it's independent from th...
Definition plasmoiditem.h:104
QString toolTipSubText
Description for the plasmoid tooltip or other means of quick information: it comes from the pluginifo...
Definition plasmoiditem.h:58
int toolTipTextFormat
how to handle the text format of the tooltip subtext:
Definition plasmoiditem.h:68
QQmlListProperty< QAction > contextualActions
Actions to be added in the desktop context menu.
Definition wallpaperitem.h:47
KGUIADDONS_EXPORT QWindow * window(QObject *job)
bool isValid(QStringView ifopt)
void setData(const QVariant &data)
void trigger()
KeyPress
int key() const const
Qt::KeyboardModifiers modifiers() const const
ExactMatch
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
qsizetype length() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void destroyed(QObject *obj)
T qobject_cast(QObject *object)
QPoint toPoint() const const
QQuickItem(QQuickItem *parent)
focus
height
QQuickItem * parentItem() const const
void setVisible(bool)
width
QQuickWindow * window() const const
activeFocusItem
void moveTo(const QPoint &position)
QPoint topLeft() const const
const_iterator begin() const const
const_iterator end() const const
QPointF globalPosition() const const
QString first(qsizetype n) const const
bool isEmpty() const const
WA_DeleteOnClose
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
QVariant fromValue(T &&value)
void setAttribute(Qt::WidgetAttribute attribute, bool on)
WId winId() const const
QWindow * windowHandle() const const
void setTransientParent(QWindow *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:07:07 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:07:07 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.