Handled positioning of the target package widget in the container, instead of within the widget itself

This commit is contained in:
Nav
2021-09-26 18:18:12 +01:00
parent 73d422ebd5
commit 3a12395515
7 changed files with 76 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
#include "Widgets/SvgToolButton.hpp"
#include "Widgets/ExpandingWidget.hpp"
#include "Widgets/ExpandingHeightScrollAreaWidget.hpp"
#include "Widgets/TargetRegistersPane/TargetRegistersPaneWidget.hpp"
#include "Widgets/TargetWidgets/TargetPackageWidgetContainer.hpp"
#include "src/Logger/Logger.hpp"
@@ -71,6 +71,15 @@ UiLoader::UiLoader(QObject* parent): QUiLoader(parent) {
return widget;
}
},
{
"TargetPackageWidgetContainer",
[this](QWidget* parent, const QString& name) {
auto widget = new InsightTargetWidgets::TargetPackageWidgetContainer(parent);
widget->setObjectName(name);
widget->setStyleSheet(parent->styleSheet());
return widget;
}
},
};
}