KWidgetsAddons
ksplittercollapserbutton.cpp
33} s_arrowDirection[] = {{Qt::LeftArrow, Qt::RightArrow}, {Qt::RightArrow, Qt::LeftArrow}, {Qt::UpArrow, Qt::DownArrow}, {Qt::DownArrow, Qt::UpArrow}};
133 q->setArrowType(isWidgetCollapsed() ? s_arrowDirection[direction].notArrowVisible : s_arrowDirection[direction].arrowVisible);
211 connect(this, &KSplitterCollapserButton::clicked, this, &KSplitterCollapserButton::slotClicked);
A button which appears on the side of a splitter handle and allows easy collapsing of the widget on t...
Definition ksplittercollapserbutton.h:26
KSplitterCollapserButton(QWidget *childWidget, QSplitter *splitter)
KSplitterCollapserButton create a splitter collapser.
Definition ksplittercollapserbutton.cpp:175
void restore()
restore, call this function to restore previous splitter position.
Definition ksplittercollapserbutton.cpp:290
void setCollapsed(bool collapsed)
setCollapsed, this function allows to collapse or not the splitter.
Definition ksplittercollapserbutton.cpp:298
void collapse()
collapse, this function collapses the splitter if splitter is not collapsed.
Definition ksplittercollapserbutton.cpp:282
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Direction
void clicked(bool checked)
QPoint pos()
Resize
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool event(QEvent *e)
virtual bool eventFilter(QObject *watched, QEvent *event)
void installEventFilter(QObject *filterObj)
void setObjectName(QAnyStringView name)
int bottom() const const
bool contains(const QPoint &point, bool proper) const const
int height() const const
int left() const const
int right() const const
int top() const const
int width() const const
int count() const const
int indexOf(QWidget *widget) const const
orientation
CE_ToolButtonLabel
PM_ScrollBarExtent
PE_PanelButtonTool
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const const=0
void initFrom(const QWidget *widget)
ArrowType
Vertical
WA_NoChildEventsForParent
Forward
Running
void valueChanged(qreal value)
QToolButton(QWidget *parent)
virtual bool event(QEvent *event) override
virtual void initStyleOption(QStyleOptionToolButton *option) const const
QWidget(QWidget *parent, Qt::WindowFlags f)
height
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setParent(QWidget *parent)
QStyle * style() const const
void update()
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:58 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:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.