Changeset 100479 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 10, 2023 4:21:14 PM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 158234
- 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 35 35 #include <QPushButton> 36 36 #include <QStyle> 37 #include <QStatusBar>38 37 #include <QStackedLayout> 39 38 #include <QTextStream> … … 743 742 , m_pVisoCreatorWidget(0) 744 743 , m_pButtonBox(0) 745 , m_pStatusBar(0)746 , m_pStatusLabel(0)747 744 , m_pActionPool(pActionPool) 748 745 , m_iGeometrySaveTimerId(-1) … … 836 833 uiCommon().setHelpKeyword(m_pButtonBox->button(QIDialogButtonBox::Help), "create-optical-disk-image"); 837 834 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 846 835 retranslateUi(); 847 836 } … … 867 856 m_pButtonBox->button(QDialogButtonBox::Help)->setToolTip(UIVisoCreatorWidget::tr("Opens the help browser and navigates to the related section")); 868 857 updateWindowTitle(); 869 updateStatusLabel();870 858 } 871 859 … … 901 889 Q_UNUSED(strName); 902 890 updateWindowTitle(); 903 updateStatusLabel();904 891 } 905 892 … … 936 923 void UIVisoCreatorDialog::updateWindowTitle() 937 924 { 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())); 945 926 } 946 927 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r100348 r100479 50 50 class QILabel; 51 51 class QMenu; 52 class QStatusBar;53 52 class QIDialogButtonBox; 54 53 class QIToolBar; … … 209 208 void saveDialogGeometry(); 210 209 void updateWindowTitle(); 211 void updateStatusLabel();212 210 213 211 UIVisoCreatorWidget *m_pVisoCreatorWidget; 214 212 QIDialogButtonBox *m_pButtonBox; 215 QStatusBar *m_pStatusBar;216 QILabel *m_pStatusLabel;217 213 QPointer<UIActionPool> m_pActionPool; 218 214 int m_iGeometrySaveTimerId;
Note:
See TracChangeset
for help on using the changeset viewer.