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) {
This class is exposed to containments QML as the attached property Plasmoid.
Definition containmentitem.h:36
QString description() const
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.
QString title
User friendly title for the plasmoid: it's the localized applet name by default.
Definition applet.h:74
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:92
static QString eventToString(QEvent *event)
Turns a mouse or wheel event into a string suitable for a ContainmentActions.
Definition containmentactions.cpp:97
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.
virtual QRect screenGeometry(int id) const =0
Returns the geometry of a given screen.
virtual QRegion availableScreenRegion(int id) const
Returns the available region for a given screen.
Definition corona.cpp:267
void availableScreenRegionChanged(int id)
This signal indicates that a change in available screen geometry occurred.
virtual QRect availableScreenRect(int id) const
Returns the available rect for a given screen.
Definition corona.cpp:272
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
This class is exposed to wallpapers as the WallpaperItem root qml item.
Definition wallpaperitem.h:38
QQmlListProperty< QAction > contextualActions
Actions to be added in the desktop context menu.
Definition wallpaperitem.h:47
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QWidget * 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)
T * data() const const
QPoint toPoint() const const
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
bool isNull() 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-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.