Changeset 101075 in vbox
- Timestamp:
- Sep 8, 2023 4:00:30 PM (15 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.cpp
r101011 r101075 35 35 36 36 /* GUI includes: */ 37 #include "QILabelSeparator.h"38 37 #include "QIRichTextLabel.h" 39 38 #include "QITreeWidget.h" … … 213 212 : UIEditor(pParent) 214 213 , m_fPolished(false) 215 , m_pLabelSeparator(0)216 214 , m_pTreeWidget(0) 217 215 , m_pLabelInfo(0) … … 240 238 void UILanguageSettingsEditor::retranslateUi() 241 239 { 242 /* Translate separator label: */243 if (m_pLabelSeparator)244 m_pLabelSeparator->setText(tr("&Interface Languages"));245 246 240 /* Translate tree-widget: */ 247 241 if (m_pTreeWidget) … … 336 330 pLayoutMain->setContentsMargins(0, 0, 0, 0); 337 331 338 /* Prepare separator: */339 m_pLabelSeparator = new QILabelSeparator(this);340 if (m_pLabelSeparator)341 pLayoutMain->addWidget(m_pLabelSeparator);342 343 332 /* Prepare tree-widget: */ 344 333 m_pTreeWidget = new QITreeWidget(this); 345 334 if (m_pTreeWidget) 346 335 { 347 if (m_pLabelSeparator)348 m_pLabelSeparator->setBuddy(m_pTreeWidget);349 336 m_pTreeWidget->header()->hide(); 350 337 m_pTreeWidget->setColumnCount(4); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.h
r101053 r101075 37 37 /* Forward declartions: */ 38 38 class QTreeWidgetItem; 39 class QILabelSeparator;40 39 class QIRichTextLabel; 41 40 class QITreeWidget; … … 90 89 /** @name Widgets 91 90 * @{ */ 92 /** Holds the separator label instance. */93 QILabelSeparator *m_pLabelSeparator;94 91 /** Holds the tree-widget instance. */ 95 92 QITreeWidget *m_pTreeWidget; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.cpp
r101011 r101075 34 34 35 35 /* GUI includes: */ 36 #include "QILabelSeparator.h"37 36 #include "QIToolBar.h" 38 37 #include "QITreeWidget.h" … … 278 277 UISharedFoldersEditor::UISharedFoldersEditor(QWidget *pParent /* = 0 */) 279 278 : UIEditor(pParent) 280 , m_pLabelSeparator(0)281 279 , m_pLayoutTree(0) 282 280 , m_pTreeWidget(0) … … 331 329 void UISharedFoldersEditor::setFeatureAvailable(bool fAvailable) 332 330 { 333 if (m_pLabelSeparator)334 m_pLabelSeparator->setEnabled(fAvailable);335 331 if (m_pTreeWidget) 336 332 m_pTreeWidget->setEnabled(fAvailable); … … 347 343 void UISharedFoldersEditor::retranslateUi() 348 344 { 349 /* Translate separator label: */350 if (m_pLabelSeparator)351 m_pLabelSeparator->setText(tr("Shared &Folders"));352 353 345 /* Translate tree-widget: */ 354 346 if (m_pTreeWidget) … … 646 638 pLayout->setContentsMargins(0, 0, 0, 0); 647 639 648 /* Prepare separator: */649 m_pLabelSeparator = new QILabelSeparator(this);650 if (m_pLabelSeparator)651 pLayout->addWidget(m_pLabelSeparator);652 653 640 /* Prepare view layout: */ 654 641 m_pLayoutTree = new QHBoxLayout; … … 674 661 if (m_pTreeWidget) 675 662 { 676 if (m_pLabelSeparator)677 m_pLabelSeparator->setBuddy(m_pTreeWidget);678 663 m_pTreeWidget->header()->setSectionsMovable(false); 679 664 m_pTreeWidget->setMinimumSize(QSize(0, 200)); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.h
r101011 r101075 39 39 class QHBoxLayout; 40 40 class QTreeWidgetItem; 41 class QILabelSeparator;42 41 class QIToolBar; 43 42 class QITreeWidget; … … 177 176 /** @name Widgets 178 177 * @{ */ 179 /** Holds the widget separator instance. */180 QILabelSeparator *m_pLabelSeparator;181 178 /** Holds the tree layout instance. */ 182 179 QHBoxLayout *m_pLayoutTree; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r101072 r101075 39 39 40 40 /* GUI includes: */ 41 #include "QILabelSeparator.h"42 41 #include "QITreeWidget.h" 43 42 #include "QIWidgetValidator.h" -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp
r98103 r101075 31 31 32 32 /* GUI includes: */ 33 #include "QILabelSeparator.h"34 33 #include "QIRichTextLabel.h" 35 34 #include "UIApplianceExportEditorWidget.h"
Note:
See TracChangeset
for help on using the changeset viewer.