Skip to content

Commit

Permalink
libappfw: MessageDialog allows hiding elements of the layout
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 27, 2016
1 parent 70154d7 commit 0c88ab4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/sdk/libappfw/src/dialogs/messagedialog.cpp
Expand Up @@ -67,7 +67,11 @@ DENG_GUI_PIMPL(MessageDialog)
// Put all the widgets into the layout.
foreach(Widget *w, area.childWidgets())
{
layout << w->as<GuiWidget>();
// Individual children can be hidden to exclude them from the layout.
if(!w->behavior().testFlag(Widget::Hidden))
{
layout << w->as<GuiWidget>();
}
}

area.setContentSize(layout.width(), layout.height());
Expand Down

0 comments on commit 0c88ab4

Please sign in to comment.