Interface mockup 8

This commit is contained in:
Dion Moult
2026-05-06 21:35:12 +10:00
parent 5b2721c1c4
commit f07afda09c
28 changed files with 804 additions and 350 deletions
+8 -3
View File
@@ -23,7 +23,8 @@
#include <QWidget>
class QLineEdit;
class QHBoxLayout;
class QToolButton;
class QVBoxLayout;
namespace ifcinterface::components {
@@ -38,15 +39,19 @@ class Section : public QWidget {
public:
explicit Section(const QString& title,
SectionHeaderMode header_mode = SectionHeaderMode::Visible,
const QString& filter_placeholder = {},
QWidget* parent = nullptr);
void addBodyWidget(QWidget* widget);
void clearBody();
void addHeaderWidget(QWidget* widget);
bool isExpanded() const;
void setExpanded(bool expanded);
private:
QWidget* body_ = nullptr;
QVBoxLayout* body_layout_ = nullptr;
QLineEdit* filter_field_ = nullptr;
QHBoxLayout* header_layout_ = nullptr;
QToolButton* toggle_button_ = nullptr;
};
} // namespace ifcinterface::components