mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Interface mockup 8
This commit is contained in:
+2
-2
@@ -18,9 +18,9 @@
|
||||
* *
|
||||
********************************************************************************/
|
||||
|
||||
#include "SpatialHierarchyPanelView.h"
|
||||
#include "View.h"
|
||||
|
||||
#include "SpatialHierarchyPanelWidget.h"
|
||||
#include "Widget.h"
|
||||
|
||||
namespace ifcinterface::panels::spatial_hierarchy {
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
#ifndef IFCINTERFACE_PANELS_SPATIALHIERARCHYPANELVIEW_H
|
||||
#define IFCINTERFACE_PANELS_SPATIALHIERARCHYPANELVIEW_H
|
||||
|
||||
#include "SpatialHierarchyPanelTypes.h"
|
||||
#include "Types.h"
|
||||
|
||||
#include <QObject>
|
||||
|
||||
+4
-4
@@ -18,7 +18,7 @@
|
||||
* *
|
||||
********************************************************************************/
|
||||
|
||||
#include "SpatialHierarchyPanelWidget.h"
|
||||
#include "Widget.h"
|
||||
|
||||
#include "../../components/Section.h"
|
||||
#include "../../components/SvgIcon.h"
|
||||
@@ -37,7 +37,7 @@ SpatialHierarchyPanelWidget::SpatialHierarchyPanelWidget(QWidget* parent)
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
layout->setSpacing(0);
|
||||
|
||||
auto* section = new components::Section("", components::SectionHeaderMode::Hidden, "", this);
|
||||
auto* section = new components::Section("", components::SectionHeaderMode::Hidden, this);
|
||||
|
||||
tree_ = new QTreeWidget(section);
|
||||
tree_->setColumnCount(2);
|
||||
@@ -71,8 +71,8 @@ void SpatialHierarchyPanelWidget::addNode(QTreeWidgetItem* parent, const TreeNod
|
||||
auto* item = new QTreeWidgetItem(parent, {node.name, ""});
|
||||
item->setData(1, Qt::UserRole, node.visible);
|
||||
item->setSizeHint(0, QSize(0, 24));
|
||||
item->setIcon(0, components::icons::makePanelSvgIcon(iconPath(node.kind)));
|
||||
item->setIcon(1, components::icons::makePanelSvgIcon(node.visible ? ":/icons/eye.svg" : ":/icons/eye-closed.svg"));
|
||||
item->setIcon(0, components::icons::makeSvgIcon(iconPath(node.kind)));
|
||||
item->setIcon(1, components::icons::makeSvgIcon(node.visible ? ":/icons/eye.svg" : ":/icons/eye-closed.svg"));
|
||||
for (const auto& child : node.children) {
|
||||
addNode(item, child);
|
||||
}
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
#ifndef IFCINTERFACE_PANELS_SPATIALHIERARCHYPANELWIDGET_H
|
||||
#define IFCINTERFACE_PANELS_SPATIALHIERARCHYPANELWIDGET_H
|
||||
|
||||
#include "SpatialHierarchyPanelTypes.h"
|
||||
#include "Types.h"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
Reference in New Issue
Block a user