WallpaperItem
#include <wallpaperitem.h>
Properties | |
QColor | accentColor |
KConfigPropertyMap * | configuration |
QQmlListProperty< QAction > | contextualActions |
bool | loading |
QString | pluginName |
Properties inherited from QQuickItem | |
activeFocus | |
activeFocusOnTab | |
antialiasing | |
baselineOffset | |
childrenRect | |
clip | |
containmentMask | |
enabled | |
focus | |
height | |
implicitHeight | |
implicitWidth | |
opacity | |
parent | |
rotation | |
scale | |
smooth | |
state | |
transformOrigin | |
visible | |
width | |
x | |
y | |
z | |
Properties inherited from QObject | |
objectName | |
Signals | |
void | accentColorChanged () |
void | contextualActionsChanged (const QList< QAction * > &actions) |
void | isLoadingChanged () |
void | openUrlRequested (const QUrl &url) |
Public Member Functions | |
WallpaperItem (QQuickItem *parent=nullptr) | |
QColor | accentColor () const |
void | classBegin () override |
void | componentComplete () override |
KConfigLoader * | configScheme () |
KConfigPropertyMap * | configuration () const |
QList< QAction * > | contextualActions () const |
bool | isLoading () const |
KPackage::Package | kPackage () const |
QString | pluginName () const |
QML_LIST_PROPERTY_ASSIGN_BEHAVIOR_REPLACE QQmlListProperty< QAction > | qmlContextualActions () |
void | requestOpenUrl (const QUrl &url) |
void | resetAccentColor () |
void | setAccentColor (const QColor &newColor) |
bool | supportsMimetype (const QString &mimetype) const |
Public Member Functions inherited from QQuickItem | |
QQuickItem (QQuickItem *parent) | |
Qt::MouseButtons | acceptedMouseButtons () const const |
bool | acceptHoverEvents () const const |
bool | acceptTouchEvents () const const |
void | activeFocusChanged (bool) |
bool | activeFocusOnTab () const const |
void | activeFocusOnTabChanged (bool) |
bool | antialiasing () const const |
void | antialiasingChanged (bool) |
qreal | baselineOffset () const const |
void | baselineOffsetChanged (qreal) |
QBindable< qreal > | bindableHeight () |
QBindable< qreal > | bindableWidth () |
QBindable< qreal > | bindableX () |
QBindable< qreal > | bindableY () |
virtual QRectF | boundingRect () const const |
QQuickItem * | childAt (qreal x, qreal y) const const |
QList< QQuickItem * > | childItems () const const |
QRectF | childrenRect () |
void | childrenRectChanged (const QRectF &) |
bool | clip () const const |
void | clipChanged (bool) |
virtual QRectF | clipRect () const const |
QObject * | containmentMask () const const |
void | containmentMaskChanged () |
virtual bool | contains (const QPointF &point) const const |
QCursor | cursor () const const |
void | dumpItemTree () const const |
void | enabledChanged () |
void | ensurePolished () |
bool | filtersChildMouseEvents () const const |
Flags | flags () const const |
void | focusChanged (bool) |
void | forceActiveFocus () |
void | forceActiveFocus (Qt::FocusReason reason) |
void | grabMouse () |
QSharedPointer< QQuickItemGrabResult > | grabToImage (const QSize &targetSize) |
void | grabTouchPoints (const QList< int > &ids) |
bool | hasActiveFocus () const const |
bool | hasFocus () const const |
qreal | height () const const |
void | heightChanged () |
qreal | implicitHeight () const const |
void | implicitHeightChanged () |
qreal | implicitWidth () const const |
void | implicitWidthChanged () |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const const |
bool | isAncestorOf (const QQuickItem *child) const const |
bool | isEnabled () const const |
bool | isFocusScope () const const |
virtual bool | isTextureProvider () const const |
bool | isVisible () const const |
bool | keepMouseGrab () const const |
bool | keepTouchGrab () const const |
QPointF | mapFromGlobal (const QPointF &point) const const |
QPointF | mapFromItem (const QQuickItem *item, const QPointF &point) const const |
QPointF | mapFromScene (const QPointF &point) const const |
QRectF | mapRectFromItem (const QQuickItem *item, const QRectF &rect) const const |
QRectF | mapRectFromScene (const QRectF &rect) const const |
QRectF | mapRectToItem (const QQuickItem *item, const QRectF &rect) const const |
QRectF | mapRectToScene (const QRectF &rect) const const |
QPointF | mapToGlobal (const QPointF &point) const const |
QPointF | mapToItem (const QQuickItem *item, const QPointF &point) const const |
QPointF | mapToScene (const QPointF &point) const const |
QQuickItem * | nextItemInFocusChain (bool forward) |
qreal | opacity () const const |
void | opacityChanged () |
void | parentChanged (QQuickItem *) |
QQuickItem * | parentItem () const const |
void | polish () |
void | resetAntialiasing () |
void | resetHeight () |
void | resetWidth () |
qreal | rotation () const const |
void | rotationChanged () |
qreal | scale () const const |
void | scaleChanged () |
QQuickItem * | scopedFocusItem () const const |
void | setAcceptedMouseButtons (Qt::MouseButtons buttons) |
void | setAcceptHoverEvents (bool enabled) |
void | setAcceptTouchEvents (bool enabled) |
void | setActiveFocusOnTab (bool) |
void | setAntialiasing (bool) |
void | setBaselineOffset (qreal) |
void | setClip (bool) |
void | setContainmentMask (QObject *mask) |
void | setCursor (const QCursor &cursor) |
void | setEnabled (bool) |
void | setFiltersChildMouseEvents (bool filter) |
void | setFlag (Flag flag, bool enabled) |
void | setFlags (Flags flags) |
void | setFocus (bool focus, Qt::FocusReason reason) |
void | setFocus (bool) |
void | setHeight (qreal) |
void | setImplicitHeight (qreal) |
void | setImplicitWidth (qreal) |
void | setKeepMouseGrab (bool keep) |
void | setKeepTouchGrab (bool keep) |
void | setOpacity (qreal) |
void | setParentItem (QQuickItem *parent) |
void | setRotation (qreal) |
void | setScale (qreal) |
void | setSize (const QSizeF &size) |
void | setSmooth (bool) |
void | setState (const QString &) |
void | setTransformOrigin (TransformOrigin) |
void | setVisible (bool) |
void | setWidth (qreal) |
void | setX (qreal) |
void | setY (qreal) |
void | setZ (qreal) |
QSizeF | size () const const |
bool | smooth () const const |
void | smoothChanged (bool) |
void | stackAfter (const QQuickItem *sibling) |
void | stackBefore (const QQuickItem *sibling) |
QString | state () const const |
void | stateChanged (const QString &) |
virtual QSGTextureProvider * | textureProvider () const const |
TransformOrigin | transformOrigin () const const |
void | transformOriginChanged (TransformOrigin) |
void | ungrabMouse () |
void | ungrabTouchPoints () |
void | unsetCursor () |
void | update () |
QQuickItem * | viewportItem () const const |
void | visibleChanged () |
qreal | width () const const |
void | widthChanged () |
QQuickWindow * | window () const const |
void | windowChanged (QQuickWindow *window) |
qreal | x () const const |
void | xChanged () |
qreal | y () const const |
void | yChanged () |
qreal | z () const const |
void | zChanged () |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Public Member Functions inherited from QQmlParserStatus |
Static Public Member Functions | |
static QList< KPluginMetaData > | listWallpaperMetadataForMimetype (const QString &mimetype, const QString &formFactor=QString()) |
static WallpaperItem * | loadWallpaper (ContainmentItem *ContainmentItem) |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Detailed Description
This class is exposed to wallpapers as the WallpaperItem root qml item.
Import Statement
- Version
- 2.0
Definition at line 37 of file wallpaperitem.h.
Property Documentation
◆ accentColor
|
readwrite |
Definition at line 57 of file wallpaperitem.h.
◆ configuration
|
read |
Definition at line 42 of file wallpaperitem.h.
◆ contextualActions
|
read |
Actions to be added in the desktop context menu.
To instantiate QActions in a declarative way, PlasmaCore.Action {} can be used
Definition at line 47 of file wallpaperitem.h.
◆ loading
bool WallpaperItem::loading |
Definition at line 48 of file wallpaperitem.h.
◆ pluginName
|
read |
Definition at line 41 of file wallpaperitem.h.
Constructor & Destructor Documentation
◆ WallpaperItem()
|
explicit |
Definition at line 31 of file wallpaperitem.cpp.
◆ ~WallpaperItem()
|
override |
Definition at line 40 of file wallpaperitem.cpp.
Member Function Documentation
◆ accentColor()
QColor WallpaperItem::accentColor | ( | ) | const |
Definition at line 205 of file wallpaperitem.cpp.
◆ classBegin()
|
overridevirtual |
Reimplemented from QQuickItem.
Definition at line 44 of file wallpaperitem.cpp.
◆ componentComplete()
|
overridevirtual |
Reimplemented from QQuickItem.
Definition at line 64 of file wallpaperitem.cpp.
◆ configScheme()
KConfigLoader * WallpaperItem::configScheme | ( | ) |
Definition at line 98 of file wallpaperitem.cpp.
◆ configuration()
KConfigPropertyMap * WallpaperItem::configuration | ( | ) | const |
Definition at line 93 of file wallpaperitem.cpp.
◆ contextualActions()
Definition at line 178 of file wallpaperitem.cpp.
◆ isLoading()
bool WallpaperItem::isLoading | ( | ) | const |
Definition at line 200 of file wallpaperitem.cpp.
◆ kPackage()
KPackage::Package WallpaperItem::kPackage | ( | ) | const |
Definition at line 83 of file wallpaperitem.cpp.
◆ listWallpaperMetadataForMimetype()
|
static |
Returns a list of all known wallpapers that can accept the given mimetype.
- Parameters
-
mimetype the mimetype to search for formFactor the format of the wallpaper being search for (e.g. desktop)
- Returns
- list of wallpapers
Definition at line 72 of file wallpaperitem.cpp.
◆ loadWallpaper()
|
static |
Instantiate the WallpaperItem for a given containment, using the proper plugin.
Definition at line 124 of file wallpaperitem.cpp.
◆ pluginName()
QString WallpaperItem::pluginName | ( | ) | const |
Definition at line 88 of file wallpaperitem.cpp.
◆ qmlContextualActions()
QQmlListProperty< QAction > WallpaperItem::qmlContextualActions | ( | ) |
Definition at line 183 of file wallpaperitem.cpp.
◆ requestOpenUrl()
void WallpaperItem::requestOpenUrl | ( | const QUrl & | url | ) |
Definition at line 119 of file wallpaperitem.cpp.
◆ resetAccentColor()
void WallpaperItem::resetAccentColor | ( | ) |
Definition at line 220 of file wallpaperitem.cpp.
◆ setAccentColor()
void WallpaperItem::setAccentColor | ( | const QColor & | newColor | ) |
Definition at line 210 of file wallpaperitem.cpp.
◆ supportsMimetype()
bool WallpaperItem::supportsMimetype | ( | const QString & | mimetype | ) | const |
Definition at line 195 of file wallpaperitem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:52:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.