Skip to content

Commit

Permalink
[ui] Fix display of Images process
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed May 10, 2022
1 parent bb981f3 commit 64bded7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/plugins/score-lib-process/Process/Dataflow/Port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,18 @@ QGraphicsItem* PortFactory::makeFullItem(ControlInlet& portModel, const Process:

const auto& layout = defaultLayout();
auto port = makePortItem(portModel, ctx, item, context);
auto widg = makeControlItem(portModel, ctx, item, context);
SCORE_SOFT_ASSERT(port);

makeFullItemImpl(portModel, layout, *port, *widg, *item);
if(port)
{
auto widg = makeControlItem(portModel, ctx, item, context);
SCORE_SOFT_ASSERT(widg);

if(widg)
{
makeFullItemImpl(portModel, layout, *port, *widg, *item);
}
}

return item;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ QWidget* WidgetFactory::ImageListChooserItems::make_widget(

QGraphicsItem* WidgetFactory::ImageListChooserItems::make_item(const Gfx::Images::ImageListChooser& slider, const Gfx::Images::ImageListChooser& inlet, const score::DocumentContext& ctx, QGraphicsItem* parent, QObject* context)
{
return nullptr;// new QGraphicsEllipseItem{QRectF{0,0,20,20}, parent};
return new score::EmptyItem{parent};
}

W_OBJECT_IMPL(EditableTable)

0 comments on commit 64bded7

Please sign in to comment.