- Timestamp:
- Aug 6, 2012 4:32:10 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r42593 r42630 155 155 } 156 156 157 void UIGChooserItemGroup::close( )157 void UIGChooserItemGroup::close(bool fAnimated /* = true */) 158 158 { 159 159 AssertMsg(parentItem(), ("Can't close root-item!")); 160 m_pButton->setToggled(false );161 } 162 163 void UIGChooserItemGroup::open( )160 m_pButton->setToggled(false ,fAnimated); 161 } 162 163 void UIGChooserItemGroup::open(bool fAnimated /* = true */) 164 164 { 165 165 AssertMsg(parentItem(), ("Can't open root-item!")); 166 m_pButton->setToggled(true );166 m_pButton->setToggled(true, fAnimated); 167 167 } 168 168 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.h
r42593 r42630 58 58 bool closed() const; 59 59 bool opened() const; 60 void close( );61 void open( );60 void close(bool fAnimated = true); 61 void open(bool fAnimated = true); 62 62 63 63 /* API: Children stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r42629 r42630 1096 1096 /* Trying to get group item among our children: */ 1097 1097 foreach (UIGChooserItem *pGroupItem, pParentItem->items(UIGChooserItemType_Group)) 1098 { 1098 1099 if (pGroupItem->name() == strSecondSubName) 1099 return getGroupItem(strFirstSuffix, pGroupItem, fAllGroupsOpened); 1100 { 1101 UIGChooserItem *pFoundItem = getGroupItem(strFirstSuffix, pGroupItem, fAllGroupsOpened); 1102 if (UIGChooserItemGroup *pFoundGroupItem = pFoundItem->toGroupItem()) 1103 if (fAllGroupsOpened && pFoundGroupItem->closed()) 1104 pFoundGroupItem->open(false); 1105 return pFoundItem; 1106 } 1107 } 1100 1108 } 1101 1109
Note:
See TracChangeset
for help on using the changeset viewer.