chore: baseline usable version

This commit is contained in:
dela
2026-06-10 11:17:51 +08:00
commit a2f82a86b6
932 changed files with 172551 additions and 0 deletions
@@ -0,0 +1,29 @@
#ifndef COLLAPSIBLESECTION_H
#define COLLAPSIBLESECTION_H
#include <QString>
#include <QWidget>
class QPushButton;
class QVBoxLayout;
class CollapsibleSection : public QWidget {
Q_OBJECT
public:
explicit CollapsibleSection(const QString& title, QWidget* parent = nullptr);
QVBoxLayout* contentLayout() const { return m_contentLayout; }
void setExpanded(bool expanded);
bool isExpanded() const { return m_expanded; }
private:
void updateToggleText();
QPushButton* m_toggle;
QWidget* m_content;
QVBoxLayout* m_contentLayout;
bool m_expanded = false;
QString m_title;
};
#endif