VirtualBox

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


Ignore:
Timestamp:
May 9, 2008 1:04:00 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: use new QIDialogButtonBox

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/QIMessageBox.h

    r8369 r8741  
    3535class QPushButton;
    3636class QSpacerItem;
    37 class QDialogButtonBox;
     37
     38class QIDialogButtonBox;
    3839
    3940class QIMessageBox : public QIDialog
     
    109110    QTextEdit *mDetailsText;
    110111    QSpacerItem *mSpacer;
    111     QDialogButtonBox *mButtonBox;
     112    QIDialogButtonBox *mButtonBox;
    112113};
    113114
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSharedFoldersSettings.h

    r8704 r8741  
    3333class QCheckBox;
    3434class SFTreeViewItem;
    35 class QDialogButtonBox;
     35
     36class QIDialogButtonBox;
    3637
    3738enum SFDialogType
     
    139140    void showEvent (QShowEvent *aEvent);
    140141
    141     QDialogButtonBox *mButtonBox;
    142     QLineEdit        *mLePath;
    143     QLineEdit        *mLeName;
    144     QCheckBox        *mCbPermanent;
    145     QCheckBox        *mCbReadonly;
    146     SFoldersNameList  mUsedNames;
     142    QIDialogButtonBox *mButtonBox;
     143    QLineEdit         *mLePath;
     144    QLineEdit         *mLeName;
     145    QCheckBox         *mCbPermanent;
     146    QCheckBox         *mCbReadonly;
     147    SFoldersNameList   mUsedNames;
    147148};
    148149
  • trunk/src/VBox/Frontends/VirtualBox4/src/QIMessageBox.cpp

    r8369 r8741  
    2626#include "QIMessageBox.h"
    2727#include "QIRichLabel.h"
     28#include "QIDialogButtonBox.h"
    2829
    2930/* Qt includes */
     
    3132#include <QPushButton>
    3233#include <QLabel>
    33 #include <QDialogButtonBox>
    3434
    3535/** @class QIMessageBox
     
    123123    layout->addItem (mSpacer);
    124124
    125     mButtonBox = new QDialogButtonBox;
     125    mButtonBox = new QIDialogButtonBox;
    126126    mButtonBox->setCenterButtons (true);
    127127    layout->addWidget (mButtonBox);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxCloseVMDlg.cpp

    r8332 r8741  
    3333    setupUi (this);
    3434
    35     /* Help is toggled with F1 */
    36     mButtonBox->button (QDialogButtonBox::Help)->setShortcut (QKeySequence (tr ("F1")));
    3735    /* Set fixed size */
    3836    setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8717 r8741  
    34973497
    34983498    /* Setup button's layout */
    3499     QDialogButtonBox *buttonBox = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
    3500     QPushButton *btnHelp = buttonBox->button (QDialogButtonBox::Help);
    3501     btnHelp->setText (tr ("Help"));
    3502     btnHelp->setShortcut (QKeySequence (tr ("F1")));
     3499    QIDialogButtonBox *buttonBox = new QIDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
    35033500
    35043501    connect (buttonBox, SIGNAL (helpRequested()), &vboxProblem(), SLOT (showHelpHelpDialog()));
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r8737 r8741  
    2929#include "QIHotKeyEdit.h"
    3030#include "QIMessageBox.h"
     31#include "QIDialogButtonBox.h"
    3132
    3233#ifdef VBOX_WITH_REGISTRATION
     
    3637/* Qt includes */
    3738#include <QLibraryInfo>
    38 #include <QDialogButtonBox>
    3939#include <QFileDialog>
    4040#include <QToolTip>
     
    568568        mAgreeButton = new QPushButton (tr ("I &Agree"), this);
    569569        mDisagreeButton = new QPushButton (tr ("I &Disagree"), this);
    570         QDialogButtonBox *dbb = new QDialogButtonBox (this);
     570        QDialogButtonBox *dbb = new QIDialogButtonBox (this);
    571571        dbb->addButton (mAgreeButton, QDialogButtonBox::AcceptRole);
    572572        dbb->addButton (mDisagreeButton, QDialogButtonBox::RejectRole);
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSharedFoldersSettings.cpp

    r8704 r8741  
    2121 */
    2222
    23 #include <VBoxSharedFoldersSettings.h>
    24 #include <VBoxGlobal.h>
    25 #include <VBoxProblemReporter.h>
    26 #include <VBoxUtils.h>
     23#include "VBoxSharedFoldersSettings.h"
     24#include "VBoxGlobal.h"
     25#include "VBoxProblemReporter.h"
     26#include "VBoxUtils.h"
     27#include "QIDialogButtonBox.h"
    2728
    2829/* Qt includes */
     
    3334#include <QTimer>
    3435#include <QLabel>
    35 #include <QDialogButtonBox>
    3636
    3737class SFTreeViewItem : public QTreeWidgetItem
     
    720720
    721721    /* Setup Button layout */
    722     mButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
     722    mButtonBox = new QIDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
    723723    mButtonBox->setCenterButtons (true);
    724724    connect (mButtonBox, SIGNAL (accepted()), this, SLOT (accept()));
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxCloseVMDlg.ui

    r7910 r8741  
    202202   </item>
    203203   <item>
    204     <widget class="QDialogButtonBox" name="mButtonBox" >
     204    <widget class="QIDialogButtonBox" name="mButtonBox" >
    205205     <property name="standardButtons" >
    206206      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
     
    211211 </widget>
    212212 <layoutdefault spacing="6" margin="11" />
     213 <customwidgets>
     214  <customwidget>
     215   <class>QIDialogButtonBox</class>
     216   <extends>QDialogButtonBox</extends>
     217   <header>QIDialogButtonBox.h</header>
     218  </customwidget>
     219 </customwidgets>
    213220 <resources>
    214221  <include location="../VirtualBox.qrc" />
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui

    r7926 r8741  
    9696    </item>
    9797    <item>
    98      <widget class="QDialogButtonBox" name="mButtonBox" >
     98     <widget class="QIDialogButtonBox" name="mButtonBox" >
    9999      <property name="standardButtons" >
    100100       <set>QDialogButtonBox::Close</set>
     
    106106  <widget class="QStatusBar" name="statusbar" />
    107107 </widget>
     108 <customwidgets>
     109  <customwidget>
     110   <class>QIDialogButtonBox</class>
     111   <extends>QDialogButtonBox</extends>
     112   <header>QIDialogButtonBox.h</header>
     113  </customwidget>
     114 </customwidgets>
    108115 <resources>
    109116  <include location="../VirtualBox.qrc" />
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMLogViewer.ui

    r8289 r8741  
    2929    </item>
    3030    <item>
    31      <widget class="QDialogButtonBox" name="mButtonBox" >
     31     <widget class="QIDialogButtonBox" name="mButtonBox" >
    3232      <property name="standardButtons" >
    3333       <set>QDialogButtonBox::Close|QDialogButtonBox::Help|QDialogButtonBox::NoButton|QDialogButtonBox::Save</set>
     
    3939  <widget class="QStatusBar" name="statusbar" />
    4040 </widget>
     41 <customwidgets>
     42  <customwidget>
     43   <class>QIDialogButtonBox</class>
     44   <extends>QDialogButtonBox</extends>
     45   <header>QIDialogButtonBox.h</header>
     46  </customwidget>
     47 </customwidgets>
    4148 <resources>
    4249  <include location="../VirtualBox.qrc" />
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