VirtualBox

Changeset 80443 in vbox


Ignore:
Timestamp:
Aug 27, 2019 4:48:40 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132932
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Make sure current chooser item visible on GUI restart and resize.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r79365 r80443  
    580580    /* Relayout: */
    581581    updateLayout();
     582
     583    /* Make current item visible asynchronously: */
     584    QMetaObject::invokeMethod(this, "sltMakeSureCurrentItemVisible", Qt::QueuedConnection);
    582585}
    583586
     
    698701    /* Notify listeners about selection change: */
    699702    emit sigSelectionChanged();
     703}
     704
     705void UIChooserModel::sltMakeSureCurrentItemVisible()
     706{
     707    root()->toGroupItem()->makeSureItemIsVisible(currentItem());
    700708}
    701709
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r77948 r80443  
    253253    /** @name Selection stuff.
    254254      * @{ */
     255        /** Makes sure current item is visible. */
     256        void sltMakeSureCurrentItemVisible();
     257
    255258        /** Handles current-item destruction. */
    256259        void sltCurrentItemDestroyed();
Note: See TracChangeset for help on using the changeset viewer.

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