VirtualBox

Changeset 101075 in vbox


Ignore:
Timestamp:
Sep 8, 2023 4:00:30 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: Preferences / Settings dialogs: Get rid of excessive QILabelSeparator usage; This is mostly related to Language and Shared Folders pages.

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  
    3535
    3636/* GUI includes: */
    37 #include "QILabelSeparator.h"
    3837#include "QIRichTextLabel.h"
    3938#include "QITreeWidget.h"
     
    213212    : UIEditor(pParent)
    214213    , m_fPolished(false)
    215     , m_pLabelSeparator(0)
    216214    , m_pTreeWidget(0)
    217215    , m_pLabelInfo(0)
     
    240238void UILanguageSettingsEditor::retranslateUi()
    241239{
    242     /* Translate separator label: */
    243     if (m_pLabelSeparator)
    244         m_pLabelSeparator->setText(tr("&Interface Languages"));
    245 
    246240    /* Translate tree-widget: */
    247241    if (m_pTreeWidget)
     
    336330        pLayoutMain->setContentsMargins(0, 0, 0, 0);
    337331
    338         /* Prepare separator: */
    339         m_pLabelSeparator = new QILabelSeparator(this);
    340         if (m_pLabelSeparator)
    341             pLayoutMain->addWidget(m_pLabelSeparator);
    342 
    343332        /* Prepare tree-widget: */
    344333        m_pTreeWidget = new QITreeWidget(this);
    345334        if (m_pTreeWidget)
    346335        {
    347             if (m_pLabelSeparator)
    348                 m_pLabelSeparator->setBuddy(m_pTreeWidget);
    349336            m_pTreeWidget->header()->hide();
    350337            m_pTreeWidget->setColumnCount(4);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UILanguageSettingsEditor.h

    r101053 r101075  
    3737/* Forward declartions: */
    3838class QTreeWidgetItem;
    39 class QILabelSeparator;
    4039class QIRichTextLabel;
    4140class QITreeWidget;
     
    9089    /** @name Widgets
    9190     * @{ */
    92         /** Holds the separator label instance. */
    93         QILabelSeparator *m_pLabelSeparator;
    9491        /** Holds the tree-widget instance. */
    9592        QITreeWidget     *m_pTreeWidget;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.cpp

    r101011 r101075  
    3434
    3535/* GUI includes: */
    36 #include "QILabelSeparator.h"
    3736#include "QIToolBar.h"
    3837#include "QITreeWidget.h"
     
    278277UISharedFoldersEditor::UISharedFoldersEditor(QWidget *pParent /* = 0 */)
    279278    : UIEditor(pParent)
    280     , m_pLabelSeparator(0)
    281279    , m_pLayoutTree(0)
    282280    , m_pTreeWidget(0)
     
    331329void UISharedFoldersEditor::setFeatureAvailable(bool fAvailable)
    332330{
    333     if (m_pLabelSeparator)
    334         m_pLabelSeparator->setEnabled(fAvailable);
    335331    if (m_pTreeWidget)
    336332        m_pTreeWidget->setEnabled(fAvailable);
     
    347343void UISharedFoldersEditor::retranslateUi()
    348344{
    349     /* Translate separator label: */
    350     if (m_pLabelSeparator)
    351         m_pLabelSeparator->setText(tr("Shared &Folders"));
    352 
    353345    /* Translate tree-widget: */
    354346    if (m_pTreeWidget)
     
    646638        pLayout->setContentsMargins(0, 0, 0, 0);
    647639
    648         /* Prepare separator: */
    649         m_pLabelSeparator = new QILabelSeparator(this);
    650         if (m_pLabelSeparator)
    651             pLayout->addWidget(m_pLabelSeparator);
    652 
    653640        /* Prepare view layout: */
    654641        m_pLayoutTree = new QHBoxLayout;
     
    674661    if (m_pTreeWidget)
    675662    {
    676         if (m_pLabelSeparator)
    677             m_pLabelSeparator->setBuddy(m_pTreeWidget);
    678663        m_pTreeWidget->header()->setSectionsMovable(false);
    679664        m_pTreeWidget->setMinimumSize(QSize(0, 200));
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UISharedFoldersEditor.h

    r101011 r101075  
    3939class QHBoxLayout;
    4040class QTreeWidgetItem;
    41 class QILabelSeparator;
    4241class QIToolBar;
    4342class QITreeWidget;
     
    177176    /** @name Widgets
    178177     * @{ */
    179         /** Holds the widget separator instance. */
    180         QILabelSeparator *m_pLabelSeparator;
    181178        /** Holds the tree layout instance. */
    182179        QHBoxLayout      *m_pLayoutTree;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r101072 r101075  
    3939
    4040/* GUI includes: */
    41 #include "QILabelSeparator.h"
    4241#include "QITreeWidget.h"
    4342#include "QIWidgetValidator.h"
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp

    r98103 r101075  
    3131
    3232/* GUI includes: */
    33 #include "QILabelSeparator.h"
    3433#include "QIRichTextLabel.h"
    3534#include "UIApplianceExportEditorWidget.h"
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