15 #ifndef BORNAGAIN_GUI_VIEW_TOOL_GROUPBOXCOLLAPSER_H
16 #define BORNAGAIN_GUI_VIEW_TOOL_GROUPBOXCOLLAPSER_H
Add-on to group boxes to make them collapsible.
QWidget * m_contentArea
widget to where the original group box content has been moved
QHBoxLayout * m_titleLayout
layout in the title widget
void setExpanded(bool expanded=true)
Expand/collapse the content area.
GroupBoxCollapser(QGroupBox *groupBox)
void toggle(bool checked)
QWidget * contentArea() const
The content area, to which the found group box content has been moved when the add-on has been instal...
QWidget * m_titleWidget
widget used to present the new groupbox title
void addAction(QAction *action)
Add a tool button to the title bar, connected to the given action.
void addWidget(QWidget *widget)
Add a widget to the title bar.
QToolButton * m_toggleButton
button to toggle between collapsed/expanded
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
void setTitle(const QString &title)
Set the title of the group box. Do not use the method groupBox->setTitle() any more once the add-on i...
static GroupBoxCollapser * findInstalledCollapser(QGroupBox *groupBox)