VirtualBox

Changeset 70552 in vbox for trunk/src


Ignore:
Timestamp:
Jan 12, 2018 12:12:08 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: Just a coding-style fixes for r120058.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp

    r70453 r70552  
    351351}
    352352
    353 UIGChooserItem* UIGChooserModel::findClosestUnselectedItem() const
    354 {
    355     /*
    356      * Take the focus item (if any) as a starting point and find
    357      * the closest non-selected item.
    358      */
     353UIGChooserItem *UIGChooserModel::findClosestUnselectedItem() const
     354{
     355    /* Take the focus item (if any) as a starting point
     356     * and find the closest non-selected item. */
    359357    UIGChooserItem *pItem = focusItem();
    360358    if (!pItem)
     
    371369                if (!currentItems().contains(pItem))
    372370                    return pItem;
    373                 idxBefore--;
     371                --idxBefore;
    374372            }
    375373            if (idxAfter < navigationList().size())
     
    378376                if (!currentItems().contains(pItem))
    379377                    return pItem;
    380                 idxAfter++;
     378                ++idxAfter;
    381379            }
    382380        }
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h

    r70452 r70552  
    120120    void addToCurrentItems(UIGChooserItem *pItem);
    121121    void removeFromCurrentItems(UIGChooserItem *pItem);
    122     UIGChooserItem* findClosestUnselectedItem() const;
     122    UIGChooserItem *findClosestUnselectedItem() const;
    123123    void makeSureSomeItemIsSelected();
    124124    void notifyCurrentItemChanged();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette