ContainmentItem
#include <containmentitem.h>
Properties | |
bool | loading |
WallpaperItem * | wallpaper |
Properties inherited from PlasmoidItem | |
QRect | availableScreenRect |
QVariantList | availableScreenRegion |
bool | hideOnWindowDeactivate |
int | screen |
QRect | screenGeometry |
QQuickItem * | toolTipItem |
QString | toolTipMainText |
QString | toolTipSubText |
int | toolTipTextFormat |
Signals | |
void | actionsChanged () |
void | appletsChanged () |
void | drawWallpaperChanged () |
void | editModeChanged () |
void | isLoadingChanged () |
void | wallpaperItemChanged () |
Signals inherited from PlasmoidItem | |
void | availableScreenRectChanged () |
void | availableScreenRegionChanged () |
void | contextualActionsAboutToShow () |
void | contextualActionsChanged () |
void | externalData (const QString &mimetype, const QVariant &data) |
void | hideOnWindowDeactivateChanged () |
void | screenChanged () |
void | screenGeometryChanged () |
void | toolTipItemChanged () |
void | toolTipMainTextChanged () |
void | toolTipSubTextChanged () |
void | toolTipTextFormatChanged () |
Protected Member Functions | |
void | addAppletActions (QMenu *desktopMenu, Plasma::Applet *applet, QEvent *event) |
void | addContainmentActions (QMenu *desktopMenu, QEvent *event) |
void | init () override |
bool | isLoading () const |
void | itemChange (ItemChange change, const ItemChangeData &value) override |
void | keyPressEvent (QKeyEvent *event) override |
void | loadWallpaper () |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | wheelEvent (QWheelEvent *event) override |
Protected Member Functions inherited from PlasmoidItem | |
bool | event (QEvent *event) override |
bool | eventFilter (QObject *watched, QEvent *event) override |
void | init () override |
Detailed Description
This class is exposed to containments QML as the attached property Plasmoid.
Import Statement
- Version
- 2.0
Definition at line 35 of file containmentitem.h.
Property Documentation
◆ loading
|
read |
True if the UI is still loading, for instance a desktop which doesn't have its wallpaper yet.
Definition at line 44 of file containmentitem.h.
◆ wallpaper
|
read |
Definition at line 39 of file containmentitem.h.
Constructor & Destructor Documentation
◆ ContainmentItem()
ContainmentItem::ContainmentItem | ( | QQuickItem * | parent = nullptr | ) |
Definition at line 46 of file containmentitem.cpp.
Member Function Documentation
◆ addAppletActions()
|
protected |
Definition at line 973 of file containmentitem.cpp.
◆ addContainmentActions()
Definition at line 1018 of file containmentitem.cpp.
◆ adjustToAvailableScreenRegion()
QPointF ContainmentItem::adjustToAvailableScreenRegion | ( | int | x, |
int | y, | ||
int | w, | ||
int | h ) const |
Given a geometry, it adjusts it moving it completely inside of the boundaries of availableScreenRegion.
- Returns
- the toLeft point of the rectangle
Definition at line 219 of file containmentitem.cpp.
◆ classBegin()
|
overridevirtual |
Reimplemented from QQuickItem.
Definition at line 54 of file containmentitem.cpp.
◆ containment()
|
inline |
Definition at line 52 of file containmentitem.h.
◆ containmentItemAt()
QObject * ContainmentItem::containmentItemAt | ( | int | x, |
int | y ) |
Search for a containment at those coordinates.
the coordinates are passed as local coordinates of this containment
Definition at line 165 of file containmentitem.cpp.
◆ init()
|
overrideprotected |
Definition at line 69 of file containmentitem.cpp.
◆ isLoading()
|
protected |
Definition at line 1062 of file containmentitem.cpp.
◆ itemChange()
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 1067 of file containmentitem.cpp.
◆ itemFor()
PlasmaQuick::AppletQuickItem * ContainmentItem::itemFor | ( | Plasma::Applet * | applet | ) | const |
Returns the corresponding PlasmoidItem of one of its applets.
Definition at line 135 of file containmentitem.cpp.
◆ keyPressEvent()
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 953 of file containmentitem.cpp.
◆ loadWallpaper()
|
protected |
Definition at line 727 of file containmentitem.cpp.
◆ mapFromApplet()
QPointF ContainmentItem::mapFromApplet | ( | Plasma::Applet * | applet, |
int | x, | ||
int | y ) |
Map coordinates from relative to the given applet to relative to this containment.
Definition at line 189 of file containmentitem.cpp.
◆ mapToApplet()
QPointF ContainmentItem::mapToApplet | ( | Plasma::Applet * | applet, |
int | x, | ||
int | y ) |
Map coordinates from relative to this containment to relative to the given applet.
Definition at line 203 of file containmentitem.cpp.
◆ mousePressEvent()
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 784 of file containmentitem.cpp.
◆ mouseReleaseEvent()
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 779 of file containmentitem.cpp.
◆ openContextMenu()
void ContainmentItem::openContextMenu | ( | const QPointF & | globalPos | ) |
Opens the context menu of the Corona.
- Parameters
-
globalPos menu position in the global coordinate system
- Since
- 5.102
Definition at line 331 of file containmentitem.cpp.
◆ processMimeData() [1/2]
void ContainmentItem::processMimeData | ( | QMimeData * | data, |
int | x, | ||
int | y, | ||
KIO::DropJob * | dropJob = nullptr ) |
Process the mime data arrived to a particular coordinate, either with a drag and drop or paste with middle mouse button.
Definition at line 351 of file containmentitem.cpp.
◆ processMimeData() [2/2]
void ContainmentItem::processMimeData | ( | QObject * | data, |
int | x, | ||
int | y, | ||
KIO::DropJob * | dropJob = nullptr ) |
Process the mime data arrived to a particular coordinate, either with a drag and drop or paste with middle mouse button.
Definition at line 341 of file containmentitem.cpp.
◆ wallpaperItem()
|
inline |
Definition at line 57 of file containmentitem.h.
◆ wheelEvent()
|
overrideprotectedvirtual |
Reimplemented from QQuickItem.
Definition at line 925 of file containmentitem.cpp.
The documentation for this class was generated from the following files:
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.