VirtualBox

Changeset 100114 in vbox


Ignore:
Timestamp:
Jun 8, 2023 10:10:56 AM (18 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080. Updating statusbar if Viso name changes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r100112 r100114  
    650650                this, &UIVisoCreatorDialog::sltSetCancelButtonShortCut);
    651651        connect(m_pVisoCreatorWidget, &UIVisoCreatorWidget::sigVisoNameChanged,
    652                 this, &UIVisoCreatorDialog::sltsigVisoNameChanged);
     652                this, &UIVisoCreatorDialog::sltVisoNameChanged);
    653653    }
    654654
     
    697697    if (m_pButtonBox && m_pButtonBox->button(QDialogButtonBox::Help))
    698698        m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(UIVisoCreatorWidget::tr("Opens the help browser and navigates to the related section"));
    699     if (m_pStatusLabel)
    700         m_pStatusLabel->setText(QString("%1: %2").arg(UIVisoCreatorWidget::tr("Viso file")).arg(visoFileFullPath()));
     699    updateWindowTitle();
     700    updateStatusLabel();
    701701}
    702702
     
    728728}
    729729
    730 void UIVisoCreatorDialog::sltsigVisoNameChanged(const QString &strName)
     730void UIVisoCreatorDialog::sltVisoNameChanged(const QString &strName)
    731731{
    732732    Q_UNUSED(strName);
    733733    updateWindowTitle();
     734    updateStatusLabel();
    734735}
    735736
     
    763764}
    764765
     766void UIVisoCreatorDialog::updateStatusLabel()
     767{
     768    if (m_pStatusLabel)
     769        m_pStatusLabel->setText(QString("%1: %2").arg(UIVisoCreatorWidget::tr("Viso file")).arg(visoFileFullPath()));
     770}
     771
    765772QString UIVisoCreatorDialog::visoFileFullPath() const
    766773{
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r100095 r100114  
    210210
    211211    void sltSetCancelButtonShortCut(QKeySequence keySequence);
    212     void sltsigVisoNameChanged(const QString &strName);
     212    void sltVisoNameChanged(const QString &strName);
    213213
    214214private:
     
    219219    void saveDialogGeometry();
    220220    void updateWindowTitle();
     221    void updateStatusLabel();
    221222
    222223    UIVisoCreatorWidget *m_pVisoCreatorWidget;
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