VirtualBox

Ignore:
Timestamp:
Sep 16, 2019 9:33:24 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133384
Message:

FE/Qt: bugref:8938. Changing connection syntaxes in manager details pane code.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/details
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp

    r80280 r80817  
    10421042    connect(gpManager, &UIVirtualBoxManager::sigWindowRemapped,
    10431043            this, &UIDetailsElement::sltHandleWindowRemapped);
    1044     connect(this, SIGNAL(sigToggleElement(DetailsElementType, bool)),
    1045             model(), SLOT(sltToggleElements(DetailsElementType, bool)));
    1046     connect(this, SIGNAL(sigLinkClicked(const QString&, const QString&, const QUuid &)),
    1047             model(), SIGNAL(sigLinkClicked(const QString&, const QString&, const QUuid &)));
     1044    connect(this, &UIDetailsElement::sigToggleElement,
     1045            model(), &UIDetailsModel::sltToggleElements);
     1046    connect(this, &UIDetailsElement::sigLinkClicked,
     1047            model(), &UIDetailsModel::sigLinkClicked);
    10481048}
    10491049
     
    10531053    m_pButton = new UIGraphicsRotatorButton(this, "additionalHeight", !m_fClosed, true /* reflected */);
    10541054    m_pButton->setAutoHandleButtonClick(false);
    1055     connect(m_pButton, SIGNAL(sigButtonClicked()), this, SLOT(sltToggleButtonClicked()));
    1056     connect(m_pButton, SIGNAL(sigRotationStart()), this, SLOT(sltElementToggleStart()));
    1057     connect(m_pButton, SIGNAL(sigRotationFinish(bool)), this, SLOT(sltElementToggleFinish(bool)));
     1055    connect(m_pButton, &UIGraphicsRotatorButton::sigButtonClicked, this, &UIDetailsElement::sltToggleButtonClicked);
     1056    connect(m_pButton, &UIGraphicsRotatorButton::sigRotationStart, this, &UIDetailsElement::sltElementToggleStart);
     1057    connect(m_pButton, &UIGraphicsRotatorButton::sigRotationFinish, this, &UIDetailsElement::sltElementToggleFinish);
    10581058    m_buttonSize = m_pButton->minimumSizeHint().toSize();
    10591059}
     
    10631063    /* Create text-pane: */
    10641064    m_pTextPane = new UIGraphicsTextPane(this, model()->paintDevice());
    1065     connect(m_pTextPane, SIGNAL(sigGeometryChanged()), this, SLOT(sltUpdateGeometry()));
    1066     connect(m_pTextPane, SIGNAL(sigAnchorClicked(const QString&)), this, SLOT(sltHandleAnchorClicked(const QString&)));
     1065    connect(m_pTextPane, &UIGraphicsTextPane::sigGeometryChanged, this, &UIDetailsElement::sltUpdateGeometry);
     1066    connect(m_pTextPane, &UIGraphicsTextPane::sigAnchorClicked, this, &UIDetailsElement::sltHandleAnchorClicked);
    10671067}
    10681068
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp

    r80784 r80817  
    122122    {
    123123        /* Configure preview: */
    124         connect(m_pPreview, SIGNAL(sigSizeHintChanged()),
    125                 this, SLOT(sltPreviewSizeHintChanged()));
     124        connect(m_pPreview, &UIMachinePreview::sigSizeHintChanged,
     125                this, &UIDetailsElementPreview::sltPreviewSizeHintChanged);
    126126    }
    127127
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.cpp

    r79842 r80817  
    238238    /* Prepare/configure animation callback: */
    239239    m_pAnimationCallback = new UIDetailsElementAnimationCallback(this, type, fToggled);
    240     connect(m_pAnimationCallback, SIGNAL(sigAllAnimationFinished(DetailsElementType, bool)),
    241             this, SLOT(sltToggleAnimationFinished(DetailsElementType, bool)), Qt::QueuedConnection);
     240    connect(m_pAnimationCallback, &UIDetailsElementAnimationCallback::sigAllAnimationFinished,
     241            this, &UIDetailsModel::sltToggleAnimationFinished, Qt::QueuedConnection);
    242242    /* For each the set of the group: */
    243243    foreach (UIDetailsItem *pSetItem, m_pRoot->items())
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.h

    r79842 r80817  
    173173    void sltHandleExtraDataOptionsChange(DetailsElementType enmType);
    174174
     175    /** Handles request to start toggle details element of certain @a enmType, making element @a fToggled. */
     176    void sltToggleElements(DetailsElementType type, bool fToggled);
     177
    175178protected:
    176179
     
    180183private slots:
    181184
    182     /** Handles request to start toggle details element of certain @a enmType, making element @a fToggled. */
    183     void sltToggleElements(DetailsElementType type, bool fToggled);
    184185    /** Handles sigal about details element of certain @a enmType toggling finished, making element @a fToggled. */
    185186    void sltToggleAnimationFinished(DetailsElementType type, bool fToggled);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.cpp

    r79860 r80817  
    419419
    420420    /* Setup connections: */
    421     connect(m_pUpdateTimer, SIGNAL(timeout()), this, SLOT(sltRecreatePreview()));
    422     connect(gVBoxEvents, SIGNAL(sigMachineStateChange(QUuid, KMachineState)),
    423             this, SLOT(sltMachineStateChange(QUuid)));
     421    connect(m_pUpdateTimer, &QTimer::timeout, this, &UIMachinePreview::sltRecreatePreview);
     422    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineStateChange,
     423            this, &UIMachinePreview::sltMachineStateChange);
    424424
    425425    /* Retranslate the UI */
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