VirtualBox

Changeset 78201 in vbox for trunk/src


Ignore:
Timestamp:
Apr 18, 2019 7:29:42 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Adding progress description label to the operations panel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOperationsPanel.cpp

    r78092 r78201  
    100100    QIToolButton           *m_pCancelButton;
    101101    QILabel                *m_pStatusLabel;
     102    QILabel                *m_pOperationDescriptionLabel;
    102103};
    103104
     
    116117    , m_pCancelButton(0)
    117118    , m_pStatusLabel(0)
     119    , m_pOperationDescriptionLabel(0)
    118120{
    119121    prepare();
     
    200202    //m_pMainLayout->setSpacing(0);
    201203
     204    m_pOperationDescriptionLabel = new QILabel;
     205    if (m_pOperationDescriptionLabel)
     206    {
     207        m_pOperationDescriptionLabel->setContextMenuPolicy(Qt::NoContextMenu);
     208        m_pMainLayout->addWidget(m_pOperationDescriptionLabel, 0, 0, 1, 3);
     209    }
     210
    202211    m_pProgressBar = new QProgressBar;
    203212    if (m_pProgressBar)
     
    206215        m_pProgressBar->setMaximum(100);
    207216        m_pProgressBar->setTextVisible(true);
    208         m_pMainLayout->addWidget(m_pProgressBar, 0, 0, 1, 2);
     217        m_pMainLayout->addWidget(m_pProgressBar, 1, 0, 1, 2);
    209218    }
    210219
     
    216225        if (!m_comProgress.isNull() && !m_comProgress.GetCancelable())
    217226            m_pCancelButton->setEnabled(false);
    218         m_pMainLayout->addWidget(m_pCancelButton, 0, 2, 1, 1);
     227        m_pMainLayout->addWidget(m_pCancelButton, 1, 2, 1, 1);
    219228    }
    220229
     
    223232    {
    224233        m_pStatusLabel->setContextMenuPolicy(Qt::NoContextMenu);
    225         m_pMainLayout->addWidget(m_pStatusLabel, 0, 3, 1, 1);
     234        m_pMainLayout->addWidget(m_pStatusLabel, 1, 3, 1, 1);
    226235    }
    227236
     
    253262    Q_UNUSED(uProgressId);
    254263    m_pProgressBar->setValue(iPercent);
     264
     265    if (m_pOperationDescriptionLabel)
     266        m_pOperationDescriptionLabel->setText(m_comProgress.GetDescription());
     267
    255268}
    256269
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