KDecoration2
decorationbutton.cpp
33 DecorationButton::Private::Private(DecorationButtonType type, const QPointer<Decoration> &decoration, DecorationButton *parent)
67 QObject::connect(q, &DecorationButton::doubleClicked, decoration.data(), &Decoration::requestClose, Qt::QueuedConnection);
93 QObject::connect(c, &DecoratedClient::hasApplicationMenuChanged, q, &DecorationButton::setVisible);
94 QObject::connect(c, &DecoratedClient::applicationMenuActiveChanged, q, &DecorationButton::setChecked);
100 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestToggleOnAllDesktops, Qt::QueuedConnection);
101 QObject::connect(settings.get(), &DecorationSettings::onAllDesktopsAvailableChanged, q, &DecorationButton::setVisible);
106 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestMinimize, Qt::QueuedConnection);
114 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestToggleMaximization, Qt::QueuedConnection);
120 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestClose, Qt::QueuedConnection);
125 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestContextHelp, Qt::QueuedConnection);
126 QObject::connect(c, &DecoratedClient::providesContextHelpChanged, q, &DecorationButton::setVisible);
131 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestToggleKeepAbove, Qt::QueuedConnection);
137 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestToggleKeepBelow, Qt::QueuedConnection);
144 QObject::connect(q, &DecorationButton::clicked, decoration.data(), &Decoration::requestToggleShade, Qt::QueuedConnection);
259 return !m_doubleClickTimer->hasExpired(QGuiApplication::styleHints()->mouseDoubleClickInterval());
338 DecorationButton::DecorationButton(DecorationButtonType type, Decoration *decoration, QObject *parent)
343 connect(this, &DecorationButton::geometryChanged, this, static_cast<void (DecorationButton::*)(const QRectF &)>(&DecorationButton::update));
HoverEnter
DecorationButtonType
The DecorationButtonType is a helper type for the DecorationButton.
Definition: decorationdefines.h:17
@ KeepBelow
The KeepBelow button requests toggling the DecoratedClient's keep below state.
@ Maximize
The Maximize button requests maximizing the DecoratedClient.
@ ApplicationMenu
The ApplicationMenu button requests showing the application's menu on left or right click.
Q_EMITQ_EMIT
Type type(const QSqlDatabase &db)
QRect toRect() const const
bool contains(const QPointF &pos) const
Returns true if pos is inside of the button, otherwise returns false.
Definition: decorationbutton.cpp:451
@ Close
The Close button requests closing the DecoratedClient.
LeftButton
@ ContextHelp
The ContextHelp button requests entering the context help mode.
@ Minimize
The Minimize button requests minimizing the DecoratedClient.
QRectF geometry
The geometry of the DecorationButton in Decoration-local coordinates.
Definition: decorationbutton.h:78
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
@ KeepAbove
The KeepAbove button requests toggling the DecoratedClient's keep above state.
@ Shade
The Shade button requests toggling the DecoratedClient's shaded state.
virtual bool event(QEvent *e)
QString i18n(const char *text, const TYPE &arg...)
void timeout()
QueuedConnection
KCALENDARCORE_EXPORT uint qHash(const KCalendarCore::Period &key)
virtual void init()
This method gets invoked from the framework once the Decoration is created and completely setup.
Definition: decoration.cpp:142
QStyleHints * styleHints()
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
@ OnAllDesktops
The OnAllDesktops button requests toggling the DecoratedClient's on all desktops state.
qreal x() const const
qreal y() const const
bool isNull() const const
@ Menu
The Menu button requests showing the window menu on left or right click.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 23 2023 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.