- Timestamp:
- Jul 21, 2017 11:32:19 AM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIAdvancedSlider.cpp
r62493 r68079 273 273 pMainLayout->addWidget(m_pSlider); 274 274 275 connect(m_pSlider, SIGNAL(sliderMoved(int)), this, SLOT(sltSliderMoved(int)));276 connect(m_pSlider, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));277 connect(m_pSlider, SIGNAL(sliderPressed()), this, SIGNAL(sliderPressed()));278 connect(m_pSlider, SIGNAL(sliderReleased()), this, SIGNAL(sliderReleased()));275 connect(m_pSlider, &CPrivateSlider::sliderMoved, this, &QIAdvancedSlider::sltSliderMoved); 276 connect(m_pSlider, &CPrivateSlider::valueChanged, this, &QIAdvancedSlider::valueChanged); 277 connect(m_pSlider, &CPrivateSlider::sliderPressed, this, &QIAdvancedSlider::sliderPressed); 278 connect(m_pSlider, &CPrivateSlider::sliderReleased, this, &QIAdvancedSlider::sliderReleased); 279 279 } 280 280 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.cpp
r63054 r68079 255 255 m_pSwitchButton->setIcons(UIIconPool::iconSet(":/arrow_right_10px.png"), 256 256 UIIconPool::iconSet(":/arrow_down_10px.png")); 257 connect(m_pSwitchButton, SIGNAL(sigClicked()), this, SLOT(sltUpdateNavigationButtonsVisibility())); 258 connect(m_pSwitchButton, SIGNAL(sigClicked()), this, SLOT(sltUpdateDetailsBrowserVisibility())); 257 connect(m_pSwitchButton, &QIArrowButtonSwitch::sigClicked, this, &QIArrowSplitter::sltUpdateNavigationButtonsVisibility); 258 connect(m_pSwitchButton, &QIArrowButtonSwitch::sigClicked, this, &QIArrowSplitter::sltUpdateDetailsBrowserVisibility); 259 259 260 /* Add switch-button into button-layout: */ 260 261 pButtonLayout->addWidget(m_pSwitchButton); … … 269 270 m_pBackButton->setIconSize(QSize(iIconMetric, iIconMetric)); 270 271 m_pBackButton->setIcon(UIIconPool::iconSet(":/arrow_left_10px.png")); 271 connect(m_pBackButton, SIGNAL(sigClicked()), this, SLOT(sltSwitchDetailsPageBack())); 272 connect(m_pBackButton, &QIArrowButtonPress::sigClicked, this, &QIArrowSplitter::sltSwitchDetailsPageBack); 273 272 274 /* Add back-button into button-layout: */ 273 275 pButtonLayout->addWidget(m_pBackButton); … … 280 282 m_pNextButton->setIconSize(QSize(iIconMetric, iIconMetric)); 281 283 m_pNextButton->setIcon(UIIconPool::iconSet(":/arrow_right_10px.png")); 282 connect(m_pNextButton, SIGNAL(sigClicked()), this, SLOT(sltSwitchDetailsPageNext())); 284 connect(m_pNextButton, &QIArrowButtonPress::sigClicked, this, &QIArrowSplitter::sltSwitchDetailsPageNext); 285 283 286 /* Add next-button into button-layout: */ 284 287 pButtonLayout->addWidget(m_pNextButton); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIComboBox.cpp
r64540 r68079 312 312 { 313 313 /* Configure combo-box: */ 314 connect(m_pComboBox, SIGNAL(activated(int)), this, SIGNAL(activated(int))); 315 connect(m_pComboBox, SIGNAL(activated(const QString &)), this, SIGNAL(activated(const QString &))); 316 connect(m_pComboBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(currentIndexChanged(int))); 317 connect(m_pComboBox, SIGNAL(currentIndexChanged(const QString &)), this, SIGNAL(currentIndexChanged(const QString &))); 318 connect(m_pComboBox, SIGNAL(currentTextChanged(const QString &)), this, SIGNAL(currentTextChanged(const QString &))); 319 connect(m_pComboBox, SIGNAL(editTextChanged(const QString &)), this, SIGNAL(editTextChanged(const QString &))); 320 connect(m_pComboBox, SIGNAL(highlighted(int)), this, SIGNAL(highlighted(int))); 321 connect(m_pComboBox, SIGNAL(highlighted(const QString &)), this, SIGNAL(highlighted(const QString &))); 314 connect(m_pComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), 315 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::activated)); 316 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::activated), 317 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::activated)); 318 connect(m_pComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), 319 this, static_cast<void(QIComboBox::*)(int)>(&QIComboBox::currentIndexChanged)); 320 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::currentIndexChanged), 321 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::currentIndexChanged)); 322 connect(m_pComboBox, &QComboBox::currentTextChanged, this, &QIComboBox::currentTextChanged); 323 connect(m_pComboBox, &QComboBox::editTextChanged, this, &QIComboBox::editTextChanged); 324 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::highlighted), 325 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::highlighted)); 326 connect(m_pComboBox, static_cast<void(QComboBox::*)(const QString &)>(&QComboBox::highlighted), 327 this, static_cast<void(QIComboBox::*)(const QString &)>(&QIComboBox::highlighted)); 322 328 /* Add combo-box into layout: */ 323 329 pLayout->addWidget(m_pComboBox); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.cpp
r63317 r68079 357 357 358 358 QEventLoop eventLoop; 359 QObject::connect(&dlg, SIGNAL(finished(int)),360 &eventLoop, SLOT(quit()));359 QObject::connect(&dlg, &QFileDialog::finished, 360 &eventLoop, &QEventLoop::quit); 361 361 dlg.open(); 362 362 eventLoop.exec(); … … 593 593 594 594 QEventLoop eventLoop; 595 QObject::connect(&dlg, SIGNAL(finished(int)),596 &eventLoop, SLOT(quit()));595 QObject::connect(&dlg, &QFileDialog::finished, 596 &eventLoop, &QEventLoop::quit); 597 597 dlg.open(); 598 598 eventLoop.exec(); … … 851 851 852 852 QEventLoop eventLoop; 853 QObject::connect(&dlg, SIGNAL(finished(int)),854 &eventLoop, SLOT(quit()));853 QObject::connect(&dlg, &QFileDialog::finished, 854 &eventLoop, &QEventLoop::quit); 855 855 dlg.open(); 856 856 eventLoop.exec(); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILabel.cpp
r62493 r68079 255 255 mCopyAction->setShortcut (QKeySequence (QKeySequence::Copy)); 256 256 mCopyAction->setShortcutContext (Qt::WidgetShortcut); 257 connect (mCopyAction, SIGNAL (triggered()), this, SLOT (copy()));257 connect(mCopyAction, &QAction::triggered, this, &QILabel::copy); 258 258 } 259 259 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r62493 r68079 217 217 { 218 218 /* Configure container: */ 219 connect(m_pDetailsContainer, SIGNAL(sigSizeHintChange()), this, SLOT(sltUpdateSize())); 219 connect(m_pDetailsContainer, &QIArrowSplitter::sigSizeHintChange, 220 this, &QIMessageBox::sltUpdateSize); 220 221 /* Add details-container into main-layout: */ 221 222 pMainLayout->addWidget(m_pDetailsContainer); … … 242 243 m_pButton1 = createButton(m_iButton1); 243 244 if (m_pButton1) 244 connect(m_pButton1, SIGNAL(clicked()), SLOT(sltDone1()));245 connect(m_pButton1, &QPushButton::clicked, this, &QIMessageBox::sltDone1); 245 246 m_pButton2 = createButton(m_iButton2); 246 247 if (m_pButton2) 247 connect(m_pButton2, SIGNAL(clicked()), SLOT(sltDone2()));248 connect(m_pButton2, &QPushButton::clicked, this, &QIMessageBox::sltDone2); 248 249 m_pButton3 = createButton(m_iButton3); 249 250 if (m_pButton3) 250 connect(m_pButton3, SIGNAL(clicked()), SLOT(sltDone3()));251 connect(m_pButton3, &QPushButton::clicked, this, &QIMessageBox::sltDone3); 251 252 /* Make sure Escape button always set: */ 252 253 Assert(m_iButtonEsc); … … 256 257 QPushButton *pCopyButton = createButton(AlertButton_Copy); 257 258 pCopyButton->setToolTip(tr("Copy all errors to the clipboard")); 258 connect(pCopyButton, SIGNAL(clicked()), SLOT(sltCopy()));259 connect(pCopyButton, &QPushButton::clicked, this, &QIMessageBox::sltCopy); 259 260 } 260 261 /* Add button-box into main-layout: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichToolButton.cpp
r62493 r68079 121 121 m_pButton->removeBorder(); 122 122 m_pButton->setFocusPolicy(Qt::NoFocus); 123 connect(m_pButton, SIGNAL(clicked(bool)), this, SLOT(sltButtonClicked()));124 connect(m_pButton, SIGNAL(clicked(bool)), this, SIGNAL(sigClicked()));123 connect(m_pButton, &QIToolButton::clicked, this, &QIRichToolButton::sltButtonClicked); 124 connect(m_pButton, &QIToolButton::clicked, this, &QIRichToolButton::sigClicked); 125 125 /* Add tool-button into main-layout: */ 126 126 pMainLayout->addWidget(m_pButton); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBar.cpp
r65253 r68079 62 62 63 63 /* Make sure we remember the last one status message: */ 64 connect(this, SIGNAL(messageChanged(const QString &)),65 this, SLOT(sltRememberLastMessage(const QString &)));64 connect(this, &QIStatusBar::messageChanged, 65 this, &QIStatusBar::sltRememberLastMessage); 66 66 67 67 /* Remove that ugly border around the status-bar items on every platform: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableView.cpp
r64479 r68079 433 433 { 434 434 /* Connect created editor to the table and store it: */ 435 connect(pEditor, SIGNAL(destroyed(QObject *)), this, SLOT(sltEditorDestroyed(QObject *)));435 connect(pEditor, &QWidget::destroyed, this, &QITableView::sltEditorDestroyed); 436 436 m_editors[index] = pEditor; 437 437 } … … 471 471 setItemDelegate(pStyledItemDelegate); 472 472 /* Connect newly created delegate to the table: */ 473 connect(pStyledItemDelegate, SIGNAL(sigEditorCreated(QWidget *, const QModelIndex &)),474 this, SLOT(sltEditorCreated(QWidget *, const QModelIndex &)));475 } 476 } 477 473 connect(pStyledItemDelegate, &QIStyledItemDelegate::sigEditorCreated, 474 this, &QITableView::sltEditorCreated); 475 } 476 } 477 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWidgetValidator.cpp
r62493 r68079 88 88 89 89 /* Attach object-validator to group: */ 90 connect(pObjectValidator, SIGNAL(sigValidityChange(QValidator::State)),91 this, SLOT(sltValidate(QValidator::State)));90 connect(pObjectValidator, &QObjectValidator::sigValidityChange, 91 this, &QObjectValidatorGroup::sltValidate); 92 92 } 93 93 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWidgetValidator.h
r62493 r68079 54 54 QValidator::State state() const { return m_state; } 55 55 56 p rivateslots:56 public slots: 57 57 58 58 /** Performs validation: */
Note:
See TracChangeset
for help on using the changeset viewer.