VirtualBox

Ignore:
Timestamp:
Dec 1, 2010 11:34:10 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: remove the fixed size restriction from the network page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r34162 r34562  
    198198    /* Apply UI decorations: */
    199199    Ui::UIGlobalSettingsNetwork::setupUi (this);
    200 
    201 #ifdef Q_WS_MAC
    202     /* Make shifting spacer for MAC as we have fixed-size networks list: */
    203     QSpacerItem *pShiftSpacer = new QSpacerItem(0, 1, QSizePolicy::Expanding, QSizePolicy::Preferred);
    204     m_pLayout1->addItem(pShiftSpacer);
    205 #endif /* Q_WS_MAC */
    206200
    207201    /* Setup tree-widget: */
     
    307301    m_pInterfacesTree->setCurrentItem(m_pInterfacesTree->topLevelItem(0));
    308302    sltUpdateCurrentItem();
    309 #ifdef Q_WS_MAC
    310     int width = qMax(static_cast<QAbstractItemView*>(m_pInterfacesTree)->sizeHintForColumn(0) +
    311                      2 * m_pInterfacesTree->frameWidth() + QApplication::style()->pixelMetric(QStyle::PM_ScrollBarExtent),
    312                      220);
    313     m_pInterfacesTree->setFixedWidth(width);
    314     m_pInterfacesTree->resizeColumnToContents(0);
    315 #endif /* Q_WS_MAC */
    316303}
    317304
     
    364351                progress.WaitForCompletion(-1);
    365352                // TODO: Fix problem reporter!
    366                 //vboxProblem().showModalProgressDialog(progress, tr("Performing", "creating/removing host-only network"), this);
     353                //vboxProblem().showModalProgressDialog(progress, tr("Performing", "creating/removing host-only network"), "", this);
    367354                if (progress.GetResultCode() != 0)
    368355                    // TODO: Fix problem reporter!
     
    387374        {
    388375            // TODO: Fix problem reporter!
    389             //vboxProblem().showModalProgressDialog(progress, tr("Performing", "creating/removing host-only network"), this);
     376            //vboxProblem().showModalProgressDialog(progress, tr("Performing", "creating/removing host-only network"), "", this);
    390377            progress.WaitForCompletion(-1);
    391378            if (progress.GetResultCode() == 0)
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