VirtualBox

Changeset 67922 in vbox


Ignore:
Timestamp:
Jul 12, 2017 10:17:05 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8400: Virtual Media Manager: A bit of fixes for medium details widget.

File:
1 edited

Legend:

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

    r67863 r67922  
    209209            {
    210210                /* Configure label: */
    211                 m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
     211                m_pLabelType->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
     212
    212213                /* Add into layout: */
    213214                pLayoutOptions->addWidget(m_pLabelType, 0, 0);
    214215            }
     216
    215217            /* Create type layout: */
    216218            QHBoxLayout *pLayoutType = new QHBoxLayout;
     
    219221                /* Configure layout: */
    220222                pLayoutType->setContentsMargins(0, 0, 0, 0);
     223
    221224                /* Create type editor: */
    222225                m_pComboBoxType = new QComboBox;
     
    232235                    pLayoutType->addWidget(m_pComboBoxType);
    233236                }
     237
    234238                /* Create type error pane: */
    235239                m_pErrorPaneType = new QLabel;
     
    240244                    m_pErrorPaneType->setPixmap(UIIconPool::iconSet(":/status_error_16px.png")
    241245                                                .pixmap(QSize(iIconMetric, iIconMetric)));
     246
    242247                    /* Add into layout: */
    243248                    pLayoutType->addWidget(m_pErrorPaneType);
    244249                }
     250
    245251                /* Add into layout: */
    246252                pLayoutOptions->addLayout(pLayoutType, 0, 1);
     
    252258            {
    253259                /* Configure label: */
    254                 m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignTrailing | Qt::AlignVCenter);
     260                m_pLabelLocation->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
     261
    255262                /* Add into layout: */
    256263                pLayoutOptions->addWidget(m_pLabelLocation, 1, 0);
    257264            }
     265
    258266            /* Create location layout: */
    259267            QHBoxLayout *pLayoutLocation = new QHBoxLayout;
     
    262270                /* Configure layout: */
    263271                pLayoutLocation->setContentsMargins(0, 0, 0, 0);
     272
    264273                /* Create location editor: */
    265274                m_pSelectorLocation = new UIFilePathSelector;
     
    277286                    pLayoutLocation->addWidget(m_pSelectorLocation);
    278287                }
     288
    279289                /* Create location error pane: */
    280290                m_pErrorPaneLocation = new QLabel;
     
    288298                    pLayoutLocation->addWidget(m_pErrorPaneLocation);
    289299                }
     300
    290301                /* Add into layout: */
    291302                pLayoutOptions->addLayout(pLayoutLocation, 1, 1);
     
    311322
    312323                /* Add into layout: */
    313                 pLayoutOptions->addWidget(m_pButtonBox, 2, 0, 1, 2);
     324                pLayoutOptions->addWidget(m_pButtonBox, 3, 0, 1, 2);
    314325            }
    315326        }
     
    404415{
    405416    /* Clear type combo-box: */
     417    m_pLabelType->setEnabled(m_newData.m_fValid);
     418    m_pComboBoxType->setEnabled(m_newData.m_fValid);
    406419    m_pComboBoxType->clear();
    407420    if (m_newData.m_fValid)
     
    436449
    437450    /* Load location: */
     451    m_pLabelLocation->setEnabled(m_newData.m_fValid);
     452    m_pSelectorLocation->setEnabled(m_newData.m_fValid);
    438453    m_pSelectorLocation->setPath(m_newData.m_options.m_strLocation);
    439454    sltLocationPathChanged(m_pSelectorLocation->path());
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