VirtualBox

Changeset 8704 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 8, 2008 12:49:35 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30642
Message:

FE/Qt4: SharedFolderSettings:

  • fixed last Qt3 support warnings
  • added QDialogButtonBox
  • some simplifications
  • added copyright notice
Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
2 added
2 edited

Legend:

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

    r8600 r8704  
    66
    77/*
    8  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     8 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    34953495
    34963496    /* Setup button's layout */
    3497     QHBoxLayout *buttonLayout = new QHBoxLayout();
    3498     buttonLayout->setSpacing (10);
    3499     mainLayout->addLayout (buttonLayout);
    3500     QPushButton *pbHelp = new QPushButton (tr ("Help"));
    3501     QSpacerItem *spacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
    3502     QPushButton *pbOk = new QPushButton (tr ("&OK"));
    3503     QPushButton *pbCancel = new QPushButton (tr ("Cancel"));
    3504     connect (pbHelp, SIGNAL (clicked()), &vboxProblem(), SLOT (showHelpHelpDialog()));
    3505     connect (pbOk, SIGNAL (clicked()), this, SLOT (accept()));
    3506     connect (pbCancel, SIGNAL (clicked()), this, SLOT (reject()));
    3507     pbHelp->setShortcut (Qt::Key_F1);
    3508     buttonLayout->addWidget (pbHelp);
    3509     buttonLayout->addItem (spacer);
    3510     buttonLayout->addWidget (pbOk);
    3511     buttonLayout->addWidget (pbCancel);
    3512 
    3513     /* Setup the default push button */
    3514     pbOk->setAutoDefault (true);
    3515     pbOk->setDefault (true);
     3497    QDialogButtonBox *buttonBox = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
     3498    QPushButton *btnHelp = buttonBox->button (QDialogButtonBox::Help);
     3499    btnHelp->setText (tr ("Help"));
     3500    btnHelp->setShortcut (QKeySequence (tr ("F1")));
     3501
     3502    connect (buttonBox, SIGNAL (helpRequested()), &vboxProblem(), SLOT (showHelpHelpDialog()));
     3503    connect (buttonBox, SIGNAL (accepted()), this, SLOT (accept()));
     3504    connect (buttonBox, SIGNAL (rejected()), this, SLOT (reject()));
     3505    mainLayout->addWidget (buttonBox);
    35163506}
    35173507
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxSharedFoldersSettings.ui

    r7919 r8704  
    11<ui version="4.0" >
     2 <comment>
     3 VBox frontends: Qt4 GUI ("VirtualBox"):
     4
     5 Copyright (C) 2008 Sun Microsystems, Inc.
     6
     7 This file is part of VirtualBox Open Source Edition (OSE), as
     8 available from http://www.virtualbox.org. This file is free software;
     9 you can redistribute it and/or modify it under the terms of the GNU
     10 General Public License (GPL) as published by the Free Software
     11 Foundation, in version 2 as it comes in the "COPYING" file of the
     12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
     13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
     14
     15 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
     16 Clara, CA 95054 USA or visit http://www.sun.com if you need
     17 additional information or have any questions.
     18 </comment>
    219 <class>VBoxSharedFoldersSettings</class>
    320 <widget class="QWidget" name="VBoxSharedFoldersSettings" >
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