Project

General

Profile

WMenu::contents()

Added by David Betz about 10 years ago

Examining the function WMenuItem::contents(), it seems that 2 different widgets may be returned:

WWidget *WMenuItem::contents() const
{
  if (contentsContainer_)
    return contentsContainer_;
  else
    return contents_;
}

If PreLoading is used, then contents of the WMenuItem is returned. If LazyLoading is used, then a container holding contents is returned.

Wouldn't it be better if only contents was returned?