Changeset 86744 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 28, 2020 5:35:28 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r86742 r86744 473 473 QList<UIChooserNode*> groupNodes; 474 474 invisibleRoot()->searchForNodes(strFullName, 475 UIChooserItemSearchFlag_LocalGroup | UIChooserItemSearchFlag_ ExactId,475 UIChooserItemSearchFlag_LocalGroup | UIChooserItemSearchFlag_FullName, 476 476 groupNodes); 477 477 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserDefs.h
r84412 r86744 84 84 UIChooserItemSearchFlag_CloudProfile = RT_BIT(4), 85 85 UIChooserItemSearchFlag_ExactId = RT_BIT(5), 86 UIChooserItemSearchFlag_ExactName = RT_BIT(6) 86 UIChooserItemSearchFlag_ExactName = RT_BIT(6), 87 UIChooserItemSearchFlag_FullName = RT_BIT(7), 87 88 }; 88 89 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r86743 r86744 522 522 if (iSearchFlags & UIChooserItemSearchFlag_ExactId) 523 523 { 524 /* Exact full-namematches? */525 if ( fullName() == strSearchTag)524 /* Exact ID matches? */ 525 if (id().toString() == strSearchTag) 526 526 return this; 527 527 } … … 531 531 /* Exact name matches? */ 532 532 if (name() == strSearchTag) 533 return this; 534 } 535 /* Are we searching by the full name? */ 536 else if (iSearchFlags & UIChooserItemSearchFlag_FullName) 537 { 538 /* Full name matches? */ 539 if (fullName() == strSearchTag) 533 540 return this; 534 541 } -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86742 r86744 481 481 pItem = root()->searchForItem(strItemDescriptor, 482 482 UIChooserItemSearchFlag_LocalGroup | 483 UIChooserItemSearchFlag_ ExactId);483 UIChooserItemSearchFlag_FullName); 484 484 } 485 485 /* Its a provider group-item definition? */ … … 489 489 pItem = root()->searchForItem(strItemDescriptor, 490 490 UIChooserItemSearchFlag_CloudProvider | 491 UIChooserItemSearchFlag_ ExactId);491 UIChooserItemSearchFlag_FullName); 492 492 } 493 493 /* Its a profile group-item definition? */ … … 497 497 pItem = root()->searchForItem(strItemDescriptor, 498 498 UIChooserItemSearchFlag_CloudProfile | 499 UIChooserItemSearchFlag_ ExactId);499 UIChooserItemSearchFlag_FullName); 500 500 } 501 501 /* Its a global-item definition? */ … … 802 802 UIChooserItem *pTargetItem = root()->searchForItem(strName, 803 803 UIChooserItemSearchFlag_LocalGroup | 804 UIChooserItemSearchFlag_ ExactId);804 UIChooserItemSearchFlag_FullName); 805 805 AssertPtrReturnVoid(pTargetItem); 806 806 pTargetGroupItem = pTargetItem->toGroupItem(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserNodeGroup.cpp
r86742 r86744 242 242 else 243 243 { 244 /* If exact ID flag specified => check full node name: */244 /* If exact ID flag specified => check node ID: */ 245 245 if (iSearchFlags & UIChooserItemSearchFlag_ExactId) 246 246 { 247 if ( fullName() == strSearchTerm)247 if (id().toString() == strSearchTerm) 248 248 matchedItems << this; 249 249 } … … 252 252 { 253 253 if (name() == strSearchTerm) 254 matchedItems << this; 255 } 256 /* If full name flag specified => check full node name: */ 257 else if (iSearchFlags & UIChooserItemSearchFlag_FullName) 258 { 259 if (fullName() == strSearchTerm) 254 260 matchedItems << this; 255 261 }
Note:
See TracChangeset
for help on using the changeset viewer.