VirtualBox

Changeset 80669 in vbox


Ignore:
Timestamp:
Sep 9, 2019 11:46:08 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938. Converting connection syntaxes under settings. contd.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/global
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.cpp

    r76606 r80669  
    191191        m_pResolutionHeightSpin->setMinimum(iMinHeight);
    192192        m_pResolutionHeightSpin->setMaximum(iMaxSize);
    193         connect(m_pMaxResolutionCombo, SIGNAL(currentIndexChanged(int)),
    194                 this, SLOT(sltHandleMaximumGuestScreenSizePolicyChange()));
     193        connect(m_pMaxResolutionCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated),
     194                this, &UIGlobalSettingsDisplay::sltHandleMaximumGuestScreenSizePolicyChange);
    195195    }
    196196
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp

    r79365 r80669  
    426426            m_pPackagesTree->header()->setSectionResizeMode(2, QHeaderView::ResizeToContents);
    427427            m_pPackagesTree->setContextMenuPolicy(Qt::CustomContextMenu);
    428             connect(m_pPackagesTree, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
    429                     this, SLOT(sltHandleCurrentItemChange(QTreeWidgetItem *)));
    430             connect(m_pPackagesTree, SIGNAL(customContextMenuRequested(const QPoint &)),
    431                     this, SLOT(sltHandleContextMenuRequest(const QPoint &)));
     428            connect(m_pPackagesTree, &QITreeWidget::currentItemChanged,
     429                    this, &UIGlobalSettingsExtension::sltHandleCurrentItemChange);
     430            connect(m_pPackagesTree, &QITreeWidget::customContextMenuRequested,
     431                    this, &UIGlobalSettingsExtension::sltHandleContextMenuRequest);
    432432        }
    433433
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp

    r79365 r80669  
    347347            m_pLanguageTree->hideColumn(3);
    348348            m_pLanguageTree->setMinimumHeight(150);
    349             connect(m_pLanguageTree, SIGNAL(painted(QTreeWidgetItem *, QPainter *)),
    350                     this, SLOT(sltHandleItemPainting(QTreeWidgetItem *, QPainter *)));
    351             connect(m_pLanguageTree, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
    352                     this, SLOT(sltHandleCurrentItemChange(QTreeWidgetItem *)));
     349            connect(m_pLanguageTree, &QITreeWidget::painted,
     350                    this, &UIGlobalSettingsLanguage::sltHandleItemPainting);
     351            connect(m_pLanguageTree, &QITreeWidget::currentItemChanged,
     352                    this, &UIGlobalSettingsLanguage::sltHandleCurrentItemChange);
    353353        }
    354354
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r79365 r80669  
    559559{
    560560    /* Configure 'NAT Network' connections: */
    561     connect(m_pTreeNetworkNAT, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),
    562             this, SLOT(sltHandleCurrentItemChangeNATNetwork()));
    563     connect(m_pTreeNetworkNAT, SIGNAL(customContextMenuRequested(const QPoint &)),
    564             this, SLOT(sltHandleContextMenuRequestNATNetwork(const QPoint &)));
    565     connect(m_pTreeNetworkNAT, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),
    566             this, SLOT(sltEditNATNetwork()));
    567     connect(m_pTreeNetworkNAT, SIGNAL(itemChanged(QTreeWidgetItem *, int)),
    568             this, SLOT(sltHandleItemChangeNATNetwork(QTreeWidgetItem *)));
     561    connect(m_pTreeNetworkNAT, &QITreeWidget::currentItemChanged,
     562            this, &UIGlobalSettingsNetwork::sltHandleCurrentItemChangeNATNetwork);
     563    connect(m_pTreeNetworkNAT, &QITreeWidget::customContextMenuRequested,
     564            this, &UIGlobalSettingsNetwork::sltHandleContextMenuRequestNATNetwork);
     565    connect(m_pTreeNetworkNAT, &QITreeWidget::itemDoubleClicked,
     566            this, &UIGlobalSettingsNetwork::sltEditNATNetwork);
     567    connect(m_pTreeNetworkNAT, &QITreeWidget::itemChanged,
     568            this, &UIGlobalSettingsNetwork::sltHandleItemChangeNATNetwork);
    569569}
    570570
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp

    r76606 r80669  
    5656        {
    5757            /* Configure button-box: */
    58             connect(m_pButtonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(accept()));
    59             connect(m_pButtonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject()));
     58            connect(m_pButtonBox->button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &UIGlobalSettingsPortForwardingDlg::accept);
     59            connect(m_pButtonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &UIGlobalSettingsPortForwardingDlg::reject);
    6060        }
    6161        /* Add widgets into layout: */
     
    109109    m_pTabWidget->setTabText(1, tr("IPv6"));
    110110}
    111 
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp

    r79365 r80669  
    209209    {
    210210        /* Configure widgets: */
    211         connect(m_pCheckBoxUpdate, SIGNAL(toggled(bool)), this, SLOT(sltHandleUpdateToggle(bool)));
    212         connect(m_pComboBoxUpdatePeriod, SIGNAL(activated(int)), this, SLOT(sltHandleUpdatePeriodChange()));
     211        connect(m_pCheckBoxUpdate, &QCheckBox::toggled, this, &UIGlobalSettingsUpdate::sltHandleUpdateToggle);
     212        connect(m_pComboBoxUpdatePeriod, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated),
     213                this, &UIGlobalSettingsUpdate::sltHandleUpdatePeriodChange);
    213214    }
    214215
     
    260261    return fSuccess;
    261262}
    262 
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