VirtualBox

Ignore:
Timestamp:
Mar 7, 2008 2:35:57 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Removed several Qt3 support warnings. Replaced Q3* classes with the corresponding Qt4 classes.

File:
1 edited

Legend:

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

    r7220 r7369  
    2020#define __QIMessageBox_h__
    2121
    22 #include <qdialog.h>
    23 #include <q3vbox.h>
    24 #include <qmessagebox.h>
    25 #include <qcheckbox.h>
    26 #include <q3textedit.h>
    27 //Added by qt3to4:
    28 #include <QLabel>
     22/* Qt includes */
     23#include <QDialog>
     24#include <QMessageBox>
     25#include <QCheckBox>
     26#include <QTextEdit>
    2927
    3028class QIRichLabel;
     
    6866    void setButtonText (int aButton, const QString &aText);
    6967
    70     QString flagText() const { return mFlagCB->isShown() ? mFlagCB->text() : QString::null; }
     68    QString flagText() const { return mFlagCB->isVisible() ? mFlagCB->text() : QString::null; }
    7169    void setFlagText (const QString &aText);
    7270
     
    7472    void setFlagChecked (bool aChecked) { mFlagCB->setChecked (aChecked); }
    7573
    76     QString detailsText () const { return mDetailsText->text(); }
     74    QString detailsText () const { return mDetailsText->toHtml(); }
    7775    void setDetailsText (const QString &aText);
    7876
    79     bool isDetailsShown() const { return mDetailsVBox->isShown(); }
     77    bool isDetailsShown() const { return mDetailsVBox->isVisible(); }
    8078    void setDetailsShown (bool aShown);
    8179
    8280private:
    8381
    84     QPushButton *createButton (QWidget *aParent, int aButton);
     82    QPushButton *createButton (int aButton);
    8583
    8684private slots:
     
    102100    QIRichLabel *mTextLabel;
    103101    QPushButton *mButton0PB, *mButton1PB, *mButton2PB;
    104     Q3VBox *mMessageVBox;
    105102    QCheckBox *mFlagCB, *mFlagCB_Main, *mFlagCB_Details;
    106     Q3VBox *mDetailsVBox;
    107     Q3TextEdit *mDetailsText;
     103    QWidget *mDetailsVBox;
     104    QTextEdit *mDetailsText;
    108105    QSpacerItem *mSpacer;
    109106};
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