KDecoration3
decorationbuttongroup.cpp
88 qCritical() << "There's an unhandled layout direction! This is likely an issue of KDecoration3 not being updated to handle it\n"
89 << "or the application having an invalid layout direction set. Either way, this is a critical bug.";
112 (layoutDirection == Qt::LeftToRight ? settings->decorationButtonsLeft() : settings->decorationButtonsRight()) :
113 (layoutDirection == Qt::LeftToRight ? settings->decorationButtonsRight() : settings->decorationButtonsLeft());
121 auto changed = type == Position::Left ? &DecorationSettings::decorationButtonsLeftChanged : &DecorationSettings::decorationButtonsRightChanged;
Helper class to layout DecorationButton.
Definition decorationbuttongroup.h:31
void addButton(DecorationButton *button)
Adds button to the DecorationButtonGroup and triggers a re-layout of all DecorationButtons.
Definition decorationbuttongroup.cpp:179
QList< DecorationButton * > buttons() const
Definition decorationbuttongroup.cpp:192
bool hasButton(DecorationButtonType type) const
Definition decorationbuttongroup.cpp:141
void removeButton(DecorationButton *button)
Removes button from the DecorationButtonGroup and triggers a re-layout of all DecorationButtons.
Definition decorationbuttongroup.cpp:214
virtual void paint(QPainter *painter, const QRectF &repaintArea)
Paints the DecorationButtonGroup.
Definition decorationbuttongroup.cpp:231
DecorationButtonType
The DecorationButtonType is a helper type for the DecorationButton.
Definition decorationdefines.h:17
GeoCoordinates geo(const QVariant &location)
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QCoreApplication * instance()
layoutDirection
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
qreal x() const const
qreal y() const const
LeftToRight
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:48 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:48 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.