Changeset 80817 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 16, 2019 9:33:24 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133384
- 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 1042 1042 connect(gpManager, &UIVirtualBoxManager::sigWindowRemapped, 1043 1043 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); 1048 1048 } 1049 1049 … … 1053 1053 m_pButton = new UIGraphicsRotatorButton(this, "additionalHeight", !m_fClosed, true /* reflected */); 1054 1054 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); 1058 1058 m_buttonSize = m_pButton->minimumSizeHint().toSize(); 1059 1059 } … … 1063 1063 /* Create text-pane: */ 1064 1064 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); 1067 1067 } 1068 1068 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp
r80784 r80817 122 122 { 123 123 /* Configure preview: */ 124 connect(m_pPreview, SIGNAL(sigSizeHintChanged()),125 this, SLOT(sltPreviewSizeHintChanged()));124 connect(m_pPreview, &UIMachinePreview::sigSizeHintChanged, 125 this, &UIDetailsElementPreview::sltPreviewSizeHintChanged); 126 126 } 127 127 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.cpp
r79842 r80817 238 238 /* Prepare/configure animation callback: */ 239 239 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); 242 242 /* For each the set of the group: */ 243 243 foreach (UIDetailsItem *pSetItem, m_pRoot->items()) -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.h
r79842 r80817 173 173 void sltHandleExtraDataOptionsChange(DetailsElementType enmType); 174 174 175 /** Handles request to start toggle details element of certain @a enmType, making element @a fToggled. */ 176 void sltToggleElements(DetailsElementType type, bool fToggled); 177 175 178 protected: 176 179 … … 180 183 private slots: 181 184 182 /** Handles request to start toggle details element of certain @a enmType, making element @a fToggled. */183 void sltToggleElements(DetailsElementType type, bool fToggled);184 185 /** Handles sigal about details element of certain @a enmType toggling finished, making element @a fToggled. */ 185 186 void sltToggleAnimationFinished(DetailsElementType type, bool fToggled); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIMachinePreview.cpp
r79860 r80817 419 419 420 420 /* 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); 424 424 425 425 /* Retranslate the UI */
Note:
See TracChangeset
for help on using the changeset viewer.