VirtualBox

Changeset 104567 in vbox


Ignore:
Timestamp:
May 8, 2024 4:46:37 PM (7 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10671: Accessibility fixes for Add Cloud VM wizard; Switching from QListWidget to own QIListWidget, using proper what's this for the list.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp

    r104559 r104567  
    3131#include <QHeaderView>
    3232#include <QLabel>
    33 #include <QListWidget>
    3433#include <QPushButton>
    3534#include <QTableWidget>
     
    3837/* GUI includes: */
    3938#include "QIComboBox.h"
     39#include "QIListWidget.h"
    4040#include "QIToolButton.h"
    4141#include "UICloudNetworkingStuff.h"
     
    154154
    155155                    /* Prepare source instances table: */
    156                     m_pSourceInstanceList = new QListWidget(pWidgetSource);
     156                    m_pSourceInstanceList = new QIListWidget(pWidgetSource);
    157157                    if (m_pSourceInstanceList)
    158158                    {
     
    187187    connect(m_pProfileToolButton, &QIToolButton::clicked,
    188188            this, &UIWizardAddCloudVMPageExpert::sltHandleProfileButtonClick);
    189     connect(m_pSourceInstanceList, &QListWidget::itemSelectionChanged,
     189    connect(m_pSourceInstanceList, &QIListWidget::itemSelectionChanged,
    190190            this, &UIWizardAddCloudVMPageExpert::sltHandleSourceInstanceChange);
    191191}
     
    227227        m_pProfileToolButton->setToolTip(UIWizardAddCloudVM::tr("Opens cloud profile manager..."));
    228228    }
     229
     230    /* Translate source stuff: */
     231    m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances."));
    229232}
    230233
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r104558 r104567  
    3838class QGridLayout;
    3939class QLabel;
     40class QIListWidget;
    4041class UIToolBox;
    4142class UIWizardAddCloudVM;
     
    103104    QLabel       *m_pSourceInstanceLabel;
    104105    /** Holds the source instance list instance. */
    105     QListWidget *m_pSourceInstanceList;
     106    QIListWidget *m_pSourceInstanceList;
    106107};
    107108
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r104559 r104567  
    3030#include <QHeaderView>
    3131#include <QLabel>
    32 #include <QListWidget>
    3332#include <QPushButton>
    3433#include <QVBoxLayout>
     
    3635/* GUI includes: */
    3736#include "QIComboBox.h"
     37#include "QIListWidget.h"
    3838#include "QIRichTextLabel.h"
    3939#include "QIToolButton.h"
     
    197197}
    198198
    199 void UIWizardAddCloudVMSource::populateProfileInstances(QListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient)
     199void UIWizardAddCloudVMSource::populateProfileInstances(QIListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient)
    200200{
    201201    /* Sanity check: */
     
    220220        {
    221221            /* Create list item: */
    222             QListWidgetItem *pItem = new QListWidgetItem(names.at(i), pList);
     222            QIListWidgetItem *pItem = new QIListWidgetItem(names.at(i), pList);
    223223            if (pItem)
    224224            {
     
    237237}
    238238
    239 QStringList UIWizardAddCloudVMSource::currentListWidgetData(QListWidget *pList)
     239QStringList UIWizardAddCloudVMSource::currentListWidgetData(QIListWidget *pList)
    240240{
    241241    QStringList result;
    242     foreach (QListWidgetItem *pItem, pList->selectedItems())
     242    foreach (QIListWidgetItem *pItem, pList->selectedItems())
    243243        result << pItem->data(Qt::UserRole).toString();
    244244    return result;
     
    350350
    351351            /* Prepare source instances table: */
    352             m_pSourceInstanceList = new QListWidget(this);
     352            m_pSourceInstanceList = new QIListWidget(this);
    353353            if (m_pSourceInstanceList)
    354354            {
     
    391391    connect(m_pProfileToolButton, &QIToolButton::clicked,
    392392            this, &UIWizardAddCloudVMPageSource::sltHandleProfileButtonClick);
    393     connect(m_pSourceInstanceList, &QListWidget::itemSelectionChanged,
     393    connect(m_pSourceInstanceList, &QIListWidget::itemSelectionChanged,
    394394            this, &UIWizardAddCloudVMPageSource::sltHandleSourceInstanceChange);
    395395}
     
    435435        m_pProfileToolButton->setToolTip(UIWizardAddCloudVM::tr("Opens cloud profile manager..."));
    436436    }
     437
     438    /* Translate source stuff: */
    437439    m_pSourceInstanceLabel->setText(UIWizardAddCloudVM::tr("&Instances:"));
     440    m_pSourceInstanceList->setWhatsThis(UIWizardAddCloudVM::tr("Lists all the cloud VM instances."));
    438441
    439442    /* Adjust label widths: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h

    r104555 r104567  
    4141class QGridLayout;
    4242class QLabel;
    43 class QListWidget;
    4443class QIComboBox;
     44class QIListWidget;
    4545class QIRichTextLabel;
    4646class QIToolButton;
     
    7171    void populateProfiles(QIComboBox *pCombo, UINotificationCenter *pCenter, const QString &strProviderShortName, const QString &strProfileName);
    7272    /** Populates @a pList with profile instances available in @a comClient. */
    73     void populateProfileInstances(QListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient);
     73    void populateProfileInstances(QIListWidget *pList, UINotificationCenter *pCenter, const CCloudClient &comClient);
    7474
    7575    /** Returns current user data for @a pList specified. */
    76     QStringList currentListWidgetData(QListWidget *pList);
     76    QStringList currentListWidgetData(QIListWidget *pList);
    7777}
    7878
     
    144144    QLabel       *m_pSourceInstanceLabel;
    145145    /** Holds the source instance list instance. */
    146     QListWidget *m_pSourceInstanceList;
     146    QIListWidget *m_pSourceInstanceList;
    147147};
    148148
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