Improved the handling of the dialog title text

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14442 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-09-09 16:12:59 +00:00
parent 57a42aac39
commit 6b82d4099f
2 changed files with 16 additions and 18 deletions

View File

@@ -112,18 +112,8 @@ void Dialog::createGraphicsImplementation()
titleLabel->setFrameSettings(getFrameSettings());
titleLabel->getOrCreateUserDataContainer()->addUserObject(new osgUI::DragCallback);
#if 1
#if 0
_group->addChild(closeButton.get());
_group->addChild(titleLabel.get());
#else
setGraphicsSubgraph(-3, closeButton.get());
setGraphicsSubgraph(-2, titleLabel.get());
#endif
#else
addChild(closeButton.get());
addChild(titleLabel.get());
#endif
_group->addChild(closeButton.get());
_group->addChild(titleLabel.get());
style->setupDialogStateSet(getOrCreateWidgetStateSet(), 5);
style->setupClipStateSet(dialogWithTitleExtents, getOrCreateWidgetStateSet());