dust3d/application/sources/component_property_widget.cc

21 lines
481 B
C++
Raw Normal View History

#include "component_property_widget.h"
ComponentPropertyWidget::ComponentPropertyWidget(Document *document, QWidget *parent):
QWidget(parent),
m_document(document)
{
setFixedSize(300, 200);
}
void ComponentPropertyWidget::setComponentIds(const std::vector<dust3d::Uuid> &componentIds)
{
if (m_componentIds == componentIds)
return;
m_componentIds = componentIds;
if (m_componentIds.empty()) {
//hide();
return;
}
// TODO:
}