mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Interface mockup 8
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user