mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
25 lines
445 B
C++
25 lines
445 B
C++
#pragma once
|
|
|
|
class lcCollapsibleWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
lcCollapsibleWidget(const QString& RootTitle, QWidget* Parent = nullptr);
|
|
|
|
void Collapse();
|
|
void SetChildLayout(QLayout* Layout);
|
|
|
|
protected slots:
|
|
void TitleClicked();
|
|
|
|
protected:
|
|
void UpdateIcon();
|
|
|
|
QToolButton* mTitleButton = nullptr;
|
|
QWidget* mChildWidget = nullptr;
|
|
bool mExpanded = true;
|
|
|
|
static QImage mExpandedIcon;
|
|
static QImage mCollapsedIcon;
|
|
};
|