Libplasma
containmentactions.cpp
118 .arg(std::abs(e->angleDelta().x()) > std::abs(e->angleDelta().y()) ? QStringLiteral("Horizontal") : QStringLiteral("Vertical"));
KPluginMetaData metadata() const
Definition containmentactions.cpp:48
virtual void configurationAccepted()
This method is called when the user's configuration changes are accepted.
Definition containmentactions.cpp:77
virtual QWidget * createConfigurationInterface(QWidget *parent)
Returns the widget used in the configuration dialog.
Definition containmentactions.cpp:71
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
ContainmentActions(QObject *parent=nullptr)
Default constructor for an empty or null containmentactions.
Definition containmentactions.cpp:23
virtual void restore(const KConfigGroup &config)
This method should be called once the plugin is loaded or settings are changed.
Definition containmentactions.cpp:61
virtual void performPreviousAction()
Called when a "previous" action is triggered (e.g.
Definition containmentactions.cpp:87
virtual void performNextAction()
Called when a "next" action is triggered (e.g.
Definition containmentactions.cpp:82
Containment * containment()
Definition containmentactions.cpp:53
void setContainment(Containment *newContainment)
newContainment the containment the plugin should be associated with.
Definition containmentactions.cpp:140
static QString eventToString(QEvent *event)
Turns a mouse or wheel event into a string suitable for a ContainmentActions.
Definition containmentactions.cpp:97
virtual void save(KConfigGroup &config)
This method is called when settings need to be saved.
Definition containmentactions.cpp:66
The base class for plugins that provide backgrounds and applet grouping containers.
Definition containment.h:47
MouseButtonPress
Qt::KeyboardModifiers modifiers() const const
const char * valueToKey(int value) const const
QByteArray valueToKeys(int value) const const
virtual bool event(QEvent *e)
QObject * parent() const const
T qobject_cast(QObject *object)
void setParent(QObject *parent)
int x() const const
int y() const const
Qt::MouseButton button() const const
QString arg(Args &&... args) const const
QString fromLatin1(QByteArrayView str)
typedef KeyboardModifiers
RightButton
QPoint angleDelta() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.