Changeset 83317 in vbox
- Timestamp:
- Mar 18, 2020 12:55:34 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136501
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserDefs.h
r82968 r83317 45 45 UIChooserItemSearchFlag_Global = RT_BIT(1), 46 46 UIChooserItemSearchFlag_Group = RT_BIT(2), 47 UIChooserItemSearchFlag_ExactName = RT_BIT(3) 47 UIChooserItemSearchFlag_ExactId = RT_BIT(3), 48 UIChooserItemSearchFlag_ExactName = RT_BIT(4) 48 49 }; 49 50 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
r82968 r83317 207 207 UIChooserItem *UIChooserItemGlobal::searchForItem(const QString &, int iItemSearchFlags) 208 208 { 209 /* Ignor ing if we are not searching for the global-item?*/209 /* Ignore if we are not searching for the global-item: */ 210 210 if (!(iItemSearchFlags & UIChooserItemSearchFlag_Global)) 211 211 return 0; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r82968 r83317 483 483 if (iItemSearchFlags & UIChooserItemSearchFlag_Group) 484 484 { 485 /* Are we searching by the exact ID? */ 486 if (iItemSearchFlags & UIChooserItemSearchFlag_ExactId) 487 { 488 // Groups doesn't have IDs, but we should prevent 489 // search procedure from going to 'else' path.. 490 } 485 491 /* Are we searching by the exact name? */ 486 if (iItemSearchFlags & UIChooserItemSearchFlag_ExactName)492 else if (iItemSearchFlags & UIChooserItemSearchFlag_ExactName) 487 493 { 488 494 /* Exact name matches? */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r82968 r83317 241 241 UIChooserItem* UIChooserItemMachine::searchForItem(const QString &strSearchTag, int iItemSearchFlags) 242 242 { 243 /* Ignor ing if we are not searching for the machine-item?*/243 /* Ignore if we are not searching for the machine-item: */ 244 244 if (!(iItemSearchFlags & UIChooserItemSearchFlag_Machine)) 245 245 return 0; 246 246 247 /* Are we searching by the exact ID? */ 248 if (iItemSearchFlags & UIChooserItemSearchFlag_ExactId) 249 { 250 /* Exact ID doesn't match? */ 251 if (id() != QUuid(strSearchTag)) 252 return 0; 253 } 247 254 /* Are we searching by the exact name? */ 248 if (iItemSearchFlags & UIChooserItemSearchFlag_ExactName)255 else if (iItemSearchFlags & UIChooserItemSearchFlag_ExactName) 249 256 { 250 257 /* Exact name doesn't match? */
Note:
See TracChangeset
for help on using the changeset viewer.