Skip to content

Commit

Permalink
Fixed|FoldPanelWidget: Title is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Feb 4, 2014
1 parent 7d7806e commit ff82f69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion doomsday/client/src/ui/dialogs/logsettingsdialog.cpp
Expand Up @@ -83,7 +83,6 @@ DENG2_PIMPL(LogSettingsDialog)
// Folding panel for the per-domain settings.
self.area().add(fold = new FoldPanelWidget);
fold->setContent(new GuiWidget);
fold->title().hide();

foldLayout.setLeftTop(fold->content().rule().left(),
fold->content().rule().top());
Expand Down
10 changes: 8 additions & 2 deletions doomsday/libappfw/src/widgets/foldpanelwidget.cpp
Expand Up @@ -144,7 +144,10 @@ void FoldPanelWidget::preparePanelForOpening()
d->container = 0;
}

d->title->setOpacity(1);
if(d->title)
{
d->title->setOpacity(1);
}

PanelWidget::preparePanelForOpening();
}
Expand All @@ -153,7 +156,10 @@ void FoldPanelWidget::panelDismissed()
{
PanelWidget::panelDismissed();

d->title->setOpacity(.8f, .5f);
if(d->title)
{
d->title->setOpacity(.8f, .5f);
}

content().notifySelfAndTree(&Widget::deinitialize);

Expand Down

0 comments on commit ff82f69

Please sign in to comment.