VirtualBox

Changeset 13669 in vbox


Ignore:
Timestamp:
Oct 29, 2008 8:05:38 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Rollback the VM Selector tool-bar relayouting to previous one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp

    r13634 r13669  
    458458    /* Subwidgets */
    459459
    460     /* Central widget @ vertical layout */
     460    /* Central widget @ horizontal layout */
    461461    setCentralWidget (new QWidget (this));
    462     QVBoxLayout *centralLayout = new QVBoxLayout (centralWidget());
    463 
    464     /* Pane horizontal layout */
    465     QHBoxLayout *paneLayout = new QHBoxLayout();
     462    QHBoxLayout *centralLayout = new QHBoxLayout (centralWidget());
     463
     464    /* Left vertical box */
     465    QVBoxLayout *leftVLayout = new QVBoxLayout();
     466    /* Right vertical box */
     467    QVBoxLayout *rightVLayout = new QVBoxLayout();
     468    centralLayout->addLayout (leftVLayout, 1);
     469    centralLayout->addLayout (rightVLayout, 2);
    466470
    467471    /* VM list toolbar */
    468472    VBoxToolBar *vmTools = new VBoxToolBar (this);
    469 
    470     /* Left vertical box */
    471     QVBoxLayout *leftVLayout = new QVBoxLayout();
    472     paneLayout->addLayout (leftVLayout, 1);
    473 
    474     /* Right vertical box */
    475     QVBoxLayout *rightVLayout = new QVBoxLayout();
    476     paneLayout->addLayout (rightVLayout, 2);
    477 
    478473#if MAC_LEOPARD_STYLE
    479474    /* Enable unified toolbars on Mac OS X. Available on Qt >= 4.3 */
     
    482477    /* No spacing/margin on the mac */
    483478    VBoxGlobal::setLayoutMargin (centralLayout, 0);
    484     VBoxGlobal::setLayoutMargin (paneLayout, 0); /* Dsen to NaN: Is it necessary? */
    485479    leftVLayout->setSpacing (0);
    486480    rightVLayout->setSpacing (0);
    487     // rightVLayout->insertSpacing (0, 10); /* Dsen to NaN: Is it necessary anymore? */
     481    rightVLayout->insertSpacing (0, 10);
    488482#else /* MAC_LEOPARD_STYLE */
    489     centralLayout->addWidget (vmTools);
    490     centralLayout->setSpacing (5);
    491     paneLayout->setSpacing (9);
     483    leftVLayout->addWidget (vmTools);
     484    centralLayout->setSpacing (9);
    492485    VBoxGlobal::setLayoutMargin (centralLayout, 5);
    493486    leftVLayout->setSpacing (5);
    494487    rightVLayout->setSpacing (5);
    495488#endif /* MAC_LEOPARD_STYLE */
    496 
    497     /* Inserting pane layout */
    498     centralLayout->addLayout (paneLayout);
    499489
    500490    /* VM list view */
     
    544534    vmTools->addAction (vmStartAction);
    545535    vmTools->addAction (vmDiscardAction);
    546     vmTools->addSeparator();
    547     vmTools->addAction (vmPauseAction);
    548     vmTools->addSeparator();
    549     vmTools->addAction (vmRefreshAction);
    550     vmTools->addSeparator();
    551     vmTools->addAction (vmShowLogsAction);
    552536
    553537    /* add actions to menubar */
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