KWidgetsAddons
kcollapsiblegroupbox.cpp
163 indicatorOption.rect = style()->subElementRect(QStyle::SE_CheckBoxIndicator, &indicatorOption, this);
208 // Needs to be called asynchronously because at this point the widget is likely a "real" QWidget,
210 // But the constructor of the child class (not yet called) could set a different focus policy later.
278 // we don't want the layout trying to fit the current frame of the animation so always set it to the target height
279 layout()->setGeometry(QRect(margins.left(), margins.top(), width() - margins.left() - margins.right(), layout()->sizeHint().height()));
300 QSize textSize = q->style()->itemTextRect(option.fontMetrics, QRect(), Qt::TextShowMnemonic, false, title).size();
303 q->setContentsMargins(q->style()->pixelMetric(QStyle::PM_IndicatorWidth), headerSize.height(), 0, 0);
A groupbox featuring a clickable header and arrow indicator that can be expanded and collapsed to rev...
Definition kcollapsiblegroupbox.h:26
bool isExpanded() const
Whether contents are shown During animations, this will reflect the target state at the end of the an...
Definition kcollapsiblegroupbox.cpp:122
void expandedChanged()
Emitted when the widget expands or collapsed.
void setTitle(const QString &title)
Set the title that will be permanently shown at the top of the collapsing box Mnemonics are supported...
Definition kcollapsiblegroupbox.cpp:70
void setExpanded(bool expanded)
Set whether contents are shown.
Definition kcollapsiblegroupbox.cpp:96
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QObject * child() const const
StyleChange
QKeySequence mnemonic(const QString &text)
virtual QSize minimumSize() const const override
virtual void setGeometry(const QRect &r) override
virtual QSize sizeHint() const const=0
T value(const Key &key, const T &defaultValue) const const
int bottom() const const
int left() const const
int right() const const
int top() const const
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
Q_EMITQ_EMIT
const QObjectList & children() const const
bool isWidgetType() const const
QSize size() const const
int shortcutId() const const
int height() const const
MinimumExpanding
CT_CheckBox
CE_CheckBoxLabel
PM_IndicatorWidth
PrimitiveElement
State_MouseOver
SH_Widget_Animation_Duration
SE_CheckBoxIndicator
virtual void drawControl(ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const const=0
virtual QRect itemTextRect(const QFontMetrics &metrics, const QRect &rectangle, int alignment, bool enabled, const QString &text) const const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
virtual QSize sizeFromContents(ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget) const const=0
virtual QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
QueuedConnection
TabFocus
Key_Space
TextShowMnemonic
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
Forward
State
void stateChanged(QTimeLine::State newState)
void valueChanged(qreal value)
void setAccessibleName(const QString &name)
QMargins contentsMargins() const const
virtual bool event(QEvent *event) override
bool hasFocus() const const
focusPolicy
int grabShortcut(const QKeySequence &key, Qt::ShortcutContext context)
height
QLayout * layout() const const
virtual void leaveEvent(QEvent *event)
minimumWidth
virtual void mouseMoveEvent(QMouseEvent *event)
void releaseShortcut(int id)
virtual void resizeEvent(QResizeEvent *event)
void setContentsMargins(const QMargins &margins)
void setFixedHeight(int h)
QStyle * style() const const
void update()
void updateGeometry()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.