VirtualBox

Changeset 7318 in vbox


Ignore:
Timestamp:
Mar 6, 2008 11:14:26 AM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: No hungarian variable notation please.

File:
1 edited

Legend:

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

    r7308 r7318  
    145145    mErrBox = new QWidget();
    146146
    147     QVBoxLayout *pVLayout = new QVBoxLayout (mErrBox);
    148     pVLayout->setSpacing (10);
     147    QVBoxLayout *vLayout = new QVBoxLayout (mErrBox);
     148    vLayout->setSpacing (10);
    149149
    150150    mErrLabel = new QLabel (mErrBox);
    151151    mErrLabel->setAlignment (Qt::WordBreak);
    152152    mErrLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);
    153     pVLayout->add (mErrLabel);
     153    vLayout->add (mErrLabel);
    154154
    155155    mErrText = new QTextBrowser (mErrBox);
    156156    mErrText->setFocusPolicy (Qt::StrongFocus);
    157157    mErrText->document()->setDefaultStyleSheet ("a { text-decoration: none; }");
    158     pVLayout->add (mErrText);
     158    vLayout->add (mErrText);
    159159
    160160    if (mRefreshAction)
     
    163163        mRefreshButton->setFocusPolicy (Qt::StrongFocus);
    164164
    165         QHBoxLayout *pHLayout = new QHBoxLayout (pVLayout);
    166         pHLayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Expanding,
    167                                                   QSizePolicy::Minimum));
    168         pHLayout->add (mRefreshButton);
     165        QHBoxLayout *hLayout = new QHBoxLayout (vLayout);
     166        hLayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Expanding,
     167                                                 QSizePolicy::Minimum));
     168        hLayout->add (mRefreshButton);
    169169
    170170        connect (mRefreshButton, SIGNAL (clicked()),
     
    172172    }
    173173
    174     pVLayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum,
    175                                             QSizePolicy::Expanding));
     174    vLayout->addItem (new QSpacerItem (0, 0, QSizePolicy::Minimum,
     175                                             QSizePolicy::Expanding));
    176176
    177177    addWidget (mErrBox);
     
    243243{
    244244    /* main layout */
    245     QVBoxLayout *pVMainLayout = new QVBoxLayout (this);
    246     pVMainLayout->setSpacing (10);
    247     pVMainLayout->setContentsMargins (0, 0, 0, 0);
     245    QVBoxLayout *vMainLayout = new QVBoxLayout (this);
     246    vMainLayout->setSpacing (10);
     247    vMainLayout->setContentsMargins (0, 0, 0, 0);
    248248
    249249    /* mBrowser */
     
    252252    mBrowser->setFocusPolicy (Qt::StrongFocus);
    253253    mBrowser->document()->setDefaultStyleSheet ("a { text-decoration: none; }");
    254     pVMainLayout->addWidget (mBrowser);
     254    vMainLayout->addWidget (mBrowser);
    255255    /* hidden by default */
    256256    mBrowser->setHidden (true);
     
    260260    mLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding);
    261261    mLabel->setAlignment (Qt::AlignCenter | Qt::WordBreak);
    262     pVMainLayout->addWidget (mLabel);
     262    vMainLayout->addWidget (mLabel);
    263263    /* always disabled */
    264264    mLabel->setEnabled (false);
    265265
    266266    /* button layout */
    267     QHBoxLayout *pHBtnLayout = new QHBoxLayout (pVMainLayout);
    268     pHBtnLayout->setSpacing (10);
    269     pHBtnLayout->addItem (new QSpacerItem (0, 0,
    270                                            QSizePolicy::Expanding,
    271                                            QSizePolicy::Minimum));
     267    QHBoxLayout *hBtnLayout = new QHBoxLayout (vMainLayout);
     268    hBtnLayout->setSpacing (10);
     269    hBtnLayout->addItem (new QSpacerItem (0, 0,
     270                                          QSizePolicy::Expanding,
     271                                          QSizePolicy::Minimum));
    272272
    273273    /* button */
     
    280280    mBtnEdit->setUsesTextLabel (true);
    281281    connect (mBtnEdit, SIGNAL (clicked()), this, SLOT (goToSettings()));
    282     pHBtnLayout->addWidget (mBtnEdit);
    283 
    284     pVMainLayout->addItem (new QSpacerItem (0, 0,
    285                                           QSizePolicy::Expanding,
    286                                           QSizePolicy::Minimum));
     282    hBtnLayout->addWidget (mBtnEdit);
     283
     284    vMainLayout->addItem (new QSpacerItem (0, 0,
     285                                           QSizePolicy::Expanding,
     286                                           QSizePolicy::Minimum));
    287287
    288288    /* apply language settings */
     
    449449    /* central widget & horizontal layout */
    450450    setCentralWidget (new QWidget (this));
    451     QHBoxLayout *pCentralLayout =
     451    QHBoxLayout *centralLayout =
    452452        new QHBoxLayout (centralWidget());
    453     pCentralLayout->setSpacing (9);
    454     pCentralLayout->setContentsMargins (5, 5, 5, 5);
     453    centralLayout->setSpacing (9);
     454    centralLayout->setContentsMargins (5, 5, 5, 5);
    455455
    456456    /* left vertical box */
    457     QVBoxLayout *pLeftVLayout = new QVBoxLayout ();
    458     pLeftVLayout->setSpacing (5);
     457    QVBoxLayout *leftVLayout = new QVBoxLayout ();
     458    leftVLayout->setSpacing (5);
    459459    /* right vertical box */
    460     QVBoxLayout *pRightVLayout = new QVBoxLayout ();
    461     pRightVLayout->setSpacing (5);
    462     pCentralLayout->addLayout (pLeftVLayout, 3);
    463     pCentralLayout->addLayout (pRightVLayout, 3);
     460    QVBoxLayout *rightVLayout = new QVBoxLayout ();
     461    rightVLayout->setSpacing (5);
     462    centralLayout->addLayout (leftVLayout, 3);
     463    centralLayout->addLayout (rightVLayout, 3);
    464464
    465465    /* VM list toolbar */
    466466    VBoxToolBar *vmTools = new VBoxToolBar (this);
    467     pLeftVLayout->addWidget(vmTools);
     467    leftVLayout->addWidget(vmTools);
    468468
    469469    /* VM list box */
    470470    vmListBox = new VBoxVMListBox ();
    471     pLeftVLayout->addWidget (vmListBox);
     471    leftVLayout->addWidget (vmListBox);
    472472
    473473    /* VM tab widget containing details and snapshots tabs */
    474474    vmTabWidget = new QTabWidget ();
    475     pRightVLayout->addWidget (vmTabWidget);
     475    rightVLayout->addWidget (vmTabWidget);
    476476    vmTabWidget->setMargin (10);
    477477
     
    519519    /* add actions to menubar */
    520520
    521     QMenu *fileMenu = menuBar()->addMenu(tr("&File"));
     521    QMenu *fileMenu = menuBar()->addMenu (tr ("&File"));
    522522    fileDiskMgrAction->addTo( fileMenu );
    523523    fileMenu->insertSeparator();
     
    528528    menuBar()->insertItem( QString::null, fileMenu, 1);
    529529
    530     QMenu *vmMenu = menuBar()->addMenu(tr("&Machine"));
     530    QMenu *vmMenu = menuBar()->addMenu (tr ("&Machine"));
    531531    vmNewAction->addTo (vmMenu);
    532532    vmMenu->insertSeparator();
     
    558558    vmShowLogsAction->addTo (mVMCtxtMenu);
    559559
    560     QMenu *helpMenu = menuBar()->addMenu(tr("&Help"));
     560    QMenu *helpMenu = menuBar()->addMenu (tr ("&Help"));
    561561    helpContentsAction->addTo (helpMenu);
    562562    helpWebAction->addTo (helpMenu);
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