VirtualBox

Ignore:
Timestamp:
Jul 10, 2023 4:21:14 PM (20 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158234
Message:

FE/Qt: bugref:9080. Removing dialog status bar.

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

    r100478 r100479  
    3535#include <QPushButton>
    3636#include <QStyle>
    37 #include <QStatusBar>
    3837#include <QStackedLayout>
    3938#include <QTextStream>
     
    743742    , m_pVisoCreatorWidget(0)
    744743    , m_pButtonBox(0)
    745     , m_pStatusBar(0)
    746     , m_pStatusLabel(0)
    747744    , m_pActionPool(pActionPool)
    748745    , m_iGeometrySaveTimerId(-1)
     
    836833    uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "create-optical-disk-image");
    837834
    838     m_pStatusLabel = new QILabel;
    839     m_pStatusBar = new QStatusBar(this);
    840     AssertPtrReturnVoid(m_pButtonBox);
    841     AssertPtrReturnVoid(m_pStatusLabel);
    842 
    843     pMainLayout->addWidget(m_pStatusBar);
    844     m_pStatusBar->addPermanentWidget(m_pStatusLabel);
    845 
    846835    retranslateUi();
    847836}
     
    867856        m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(UIVisoCreatorWidget::tr("Opens the help browser and navigates to the related section"));
    868857    updateWindowTitle();
    869     updateStatusLabel();
    870858}
    871859
     
    901889    Q_UNUSED(strName);
    902890    updateWindowTitle();
    903     updateStatusLabel();
    904891}
    905892
     
    936923void UIVisoCreatorDialog::updateWindowTitle()
    937924{
    938     setWindowTitle(QString("%1 - %2.%3").arg(UIVisoCreatorWidget::tr("VISO Creator")).arg(visoName()).arg("viso"));
    939 }
    940 
    941 void UIVisoCreatorDialog::updateStatusLabel()
    942 {
    943     if (m_pStatusLabel)
    944         m_pStatusLabel->setText(QString("%1: %2").arg(UIVisoCreatorWidget::tr("VISO file")).arg(visoFileFullPath()));
     925    setWindowTitle(QString("%1 - %2").arg(UIVisoCreatorWidget::tr("VISO Creator")).arg(visoFileFullPath()));
    945926}
    946927
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r100348 r100479  
    5050class QILabel;
    5151class QMenu;
    52 class QStatusBar;
    5352class QIDialogButtonBox;
    5453class QIToolBar;
     
    209208    void saveDialogGeometry();
    210209    void updateWindowTitle();
    211     void updateStatusLabel();
    212210
    213211    UIVisoCreatorWidget *m_pVisoCreatorWidget;
    214212    QIDialogButtonBox   *m_pButtonBox;
    215     QStatusBar          *m_pStatusBar;
    216     QILabel             *m_pStatusLabel;
    217213    QPointer<UIActionPool> m_pActionPool;
    218214    int                  m_iGeometrySaveTimerId;
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