VirtualBox

Changeset 84592 in vbox


Ignore:
Timestamp:
May 28, 2020 2:19:50 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Connections cleanup.

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

Legend:

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

    r84582 r84592  
    231231    AssertPtrReturnVoid(view());
    232232
    233     /* Chooser-model connections: */
     233    /* Abstract Chooser-model connections: */
     234    connect(model(), &UIChooserModel::sigCloudMachineStateChange,
     235            this, &UIChooser::sigCloudMachineStateChange);
    234236    connect(model(), &UIChooserModel::sigGroupSavingStateChanged,
    235237            this, &UIChooser::sigGroupSavingStateChanged);
     238
     239    /* Chooser-model connections: */
     240    connect(model(), &UIChooserModel::sigToolMenuRequested,
     241            this, &UIChooser::sltToolMenuRequested);
    236242    connect(model(), &UIChooserModel::sigSelectionChanged,
    237243            this, &UIChooser::sigSelectionChanged);
     
    244250    connect(model(), &UIChooserModel::sigRootItemMinimumWidthHintChanged,
    245251            view(), &UIChooserView::sltMinimumWidthHintChanged);
    246     connect(model(), &UIChooserModel::sigToolMenuRequested,
    247             this, &UIChooser::sltToolMenuRequested);
    248     connect(model(), &UIChooserModel::sigCloudMachineStateChange,
    249             this, &UIChooser::sigCloudMachineStateChange);
    250252    connect(model(), &UIChooserModel::sigStartOrShowRequest,
    251253            this, &UIChooser::sigStartOrShowRequest);
     
    275277    AssertPtrReturnVoid(view());
    276278
    277     /* Chooser-model connections: */
     279    /* Abstract Chooser-model connections: */
     280    disconnect(model(), &UIChooserModel::sigCloudMachineStateChange,
     281               this, &UIChooser::sigCloudMachineStateChange);
    278282    disconnect(model(), &UIChooserModel::sigGroupSavingStateChanged,
    279283               this, &UIChooser::sigGroupSavingStateChanged);
     284
     285    /* Chooser-model connections: */
     286    disconnect(model(), &UIChooserModel::sigToolMenuRequested,
     287               this, &UIChooser::sltToolMenuRequested);
    280288    disconnect(model(), &UIChooserModel::sigSelectionChanged,
    281289               this, &UIChooser::sigSelectionChanged);
     
    288296    disconnect(model(), &UIChooserModel::sigRootItemMinimumWidthHintChanged,
    289297               view(), &UIChooserView::sltMinimumWidthHintChanged);
    290     disconnect(model(), &UIChooserModel::sigToolMenuRequested,
    291                this, &UIChooser::sltToolMenuRequested);
    292     disconnect(model(), &UIChooserModel::sigCloudMachineStateChange,
    293                this, &UIChooser::sigCloudMachineStateChange);
    294298    disconnect(model(), &UIChooserModel::sigStartOrShowRequest,
    295299               this, &UIChooser::sigStartOrShowRequest);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.h

    r84582 r84592  
    4141signals:
    4242
    43     /** @name General stuff.
     43    /** @name Cloud machine stuff.
     44      * @{ */
     45        /** Notifies listeners about state change for cloud machine with certain @a uId. */
     46        void sigCloudMachineStateChange(const QUuid &uId);
     47    /** @} */
     48
     49    /** @name Group saving stuff.
     50      * @{ */
     51        /** Notifies listeners about group saving state change. */
     52        void sigGroupSavingStateChanged();
     53    /** @} */
     54
     55    /** @name Tool stuff.
     56      * @{ */
     57        /** Notifies listeners about tool popup-menu request for certain @a enmClass and @a position. */
     58        void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position);
     59    /** @} */
     60
     61    /** @name Selection stuff.
    4462      * @{ */
    4563        /** Notifies listeners about selection changed. */
     
    4866        void sigSelectionInvalidated();
    4967
    50         /** Notifies listeners about toggling started. */
     68        /** Notifies listeners about group toggling started. */
    5169        void sigToggleStarted();
    52         /** Notifies listeners about toggling finished. */
     70        /** Notifies listeners about group toggling finished. */
    5371        void sigToggleFinished();
    54 
    55         /** Notifies listeners about tool popup-menu request for certain tool @a enmClass and in specified @a position. */
    56         void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position);
    57     /** @} */
    58 
    59     /** @name Cloud machine stuff.
    60       * @{ */
    61         /** Notifies about state change for cloud machine with certain @a uId. */
    62         void sigCloudMachineStateChange(const QUuid &uId);
    63     /** @} */
    64 
    65     /** @name Group saving stuff.
    66       * @{ */
    67         /** Notifies listeners about group saving state change. */
    68         void sigGroupSavingStateChanged();
    6972    /** @} */
    7073
    7174    /** @name Action stuff.
    7275      * @{ */
    73         /** Notify listeners about start or show request. */
     76        /** Notifies listeners about start or show request. */
    7477        void sigStartOrShowRequest();
    7578        /** Notifies listeners about machine search widget visibility changed to @a fVisible. */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r84557 r84592  
    4747    /** @name Cloud machine stuff.
    4848      * @{ */
    49         /** Notifies about state change for cloud machine with certain @a uId. */
     49        /** Notifies listeners about state change for cloud machine with certain @a uId. */
    5050        void sigCloudMachineStateChange(const QUuid &uId);
    5151    /** @} */
     
    5555        /** Commands to start group saving. */
    5656        void sigStartGroupSaving();
    57         /** Notifies about group saving state changed. */
     57        /** Notifies listeners about group saving state changed. */
    5858        void sigGroupSavingStateChanged();
    5959    /** @} */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.h

    r84582 r84592  
    6565signals:
    6666
    67     /** @name General stuff.
    68       * @{ */
    69         /** Notify listeners about tool menu popup request for certain @a enmClass and @a position. */
     67    /** @name Tool stuff.
     68      * @{ */
     69        /** Notifies listeners about tool popup-menu request for certain @a enmClass and @a position. */
    7070        void sigToolMenuRequested(UIToolClass enmClass, const QPoint &position);
    7171    /** @} */
     
    7373    /** @name Selection stuff.
    7474      * @{ */
    75         /** Notifies about selection changed. */
     75        /** Notifies listeners about selection changed. */
    7676        void sigSelectionChanged();
    77         /** Notifies about selection invalidated. */
     77        /** Notifies listeners about selection invalidated. */
    7878        void sigSelectionInvalidated();
    7979
    80         /** Notifies about group toggling started. */
     80        /** Notifies listeners about group toggling started. */
    8181        void sigToggleStarted();
    82         /** Notifies about group toggling finished. */
     82        /** Notifies listeners about group toggling finished. */
    8383        void sigToggleFinished();
    8484    /** @} */
     
    8686    /** @name Layout stuff.
    8787      * @{ */
    88         /** Notifies about root item minimum width @a iHint changed. */
     88        /** Notifies listeners about root item minimum width @a iHint changed. */
    8989        void sigRootItemMinimumWidthHintChanged(int iHint);
    9090    /** @} */
     
    9292    /** @name Action stuff.
    9393      * @{ */
    94         /** Notify listeners about start or show request. */
     94        /** Notifies listeners about start or show request. */
    9595        void sigStartOrShowRequest();
    9696    /** @} */
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