Changeset 43827 in vbox
- Timestamp:
- Nov 7, 2012 11:02:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r43825 r43827 173 173 QString UIGChooserItemGroup::fullName() const 174 174 { 175 /* Return "/" for root-group: */176 if ( !parentItem())175 /* Return "/" for main root-item: */ 176 if (isMainRoot()) 177 177 return "/"; 178 178 /* Get full parent name, append with '/' if not yet appended: */ 179 AssertMsg(parentItem(), ("Incorrect parent set!")); 179 180 QString strFullParentName = parentItem()->fullName(); 180 181 if (!strFullParentName.endsWith('/')) … … 216 217 void UIGChooserItemGroup::close(bool fAnimated /* = true */) 217 218 { 218 AssertMsg( parentItem(), ("Can't close root-item!"));219 AssertMsg(!isRoot(), ("Can't close root-item!")); 219 220 m_pToggleButton->setToggled(false, fAnimated); 220 221 } … … 222 223 void UIGChooserItemGroup::open(bool fAnimated /* = true */) 223 224 { 224 AssertMsg( parentItem(), ("Can't open root-item!"));225 AssertMsg(!isRoot(), ("Can't open root-item!")); 225 226 m_pToggleButton->setToggled(true, fAnimated); 226 227 } … … 232 233 if (pItem->toMachineItem()->id() == strId) 233 234 return true; 235 /* Found nothing? */ 234 236 return false; 235 237 } … … 245 247 if (pItem->toGroupItem()->isContainsLockedMachine()) 246 248 return true; 249 /* Found nothing? */ 247 250 return false; 248 251 } … … 263 266 void UIGChooserItemGroup::sltNameEditingFinished() 264 267 { 265 /* Not for root -item: */268 /* Not for root: */ 266 269 if (isRoot()) 267 270 return; … … 290 293 void UIGChooserItemGroup::sltGroupToggleStart() 291 294 { 292 /* Not for root -item: */295 /* Not for root: */ 293 296 if (isRoot()) 294 297 return; … … 321 324 void UIGChooserItemGroup::sltGroupToggleFinish(bool fToggled) 322 325 { 323 /* Not for root -item: */326 /* Not for root: */ 324 327 if (isRoot()) 325 328 return; … … 693 696 void UIGChooserItemGroup::startEditing() 694 697 { 695 /* Not for root -item: */698 /* Not for root: */ 696 699 if (isRoot()) 697 700 return; … … 892 895 return pFoundItem; 893 896 894 /* Nothing found? */897 /* Found nothing? */ 895 898 return 0; 896 899 }
Note:
See TracChangeset
for help on using the changeset viewer.