VirtualBox

Ignore:
Timestamp:
Feb 29, 2008 3:35:29 PM (17 years ago)
Author:
vboxsync
Message:

Compile VirtualBox with qt4 on linux.

File:
1 edited

Legend:

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

    r6812 r7220  
    2222#include <qobject.h>
    2323#include <qevent.h>
    24 #include <qlistview.h>
    25 #include <qtextedit.h>
     24#include <q3listview.h>
     25#include <q3textedit.h>
    2626#include <qlabel.h>
    2727#include <qlayout.h>
     28//Added by qt3to4:
     29#include <QPixmap>
     30#include <QResizeEvent>
     31#include <QMouseEvent>
     32#include <QKeyEvent>
    2833
    2934/**
     
    3641public:
    3742
    38     QIListViewSelectionPreserver (QObject *parent, QListView *alv)
     43    QIListViewSelectionPreserver (QObject *parent, Q3ListView *alv)
    3944        : QObject (parent), lv (alv)
    4045    {
     
    6065private:
    6166
    62     QListView *lv;
     67    Q3ListView *lv;
    6368};
    6469
     
    7277public:
    7378
    74     QIKeyFilter (QObject *aParent, Key aKey) : QObject (aParent), mKey (aKey) {}
     79    QIKeyFilter (QObject *aParent, Qt::Key aKey) : QObject (aParent), mKey (aKey) {}
    7580
    7681    void watchOn (QObject *o) { o->installEventFilter (this); }
     
    9499    }
    95100
    96     Key mKey;
     101    Qt::Key mKey;
    97102};
    98103
     
    171176 *  for getting more compact layout.
    172177 */
    173 class QITextEdit : public QTextEdit
     178class QITextEdit : public Q3TextEdit
    174179{
    175180    Q_OBJECT
     
    178183
    179184    QITextEdit (QWidget *aParent)
    180         : QTextEdit (aParent) {}
     185        : Q3TextEdit (aParent) {}
    181186
    182187    QSize sizeHint() const
     
    210215                                    0, 0,
    211216                                    sizePolicy().hasHeightForWidth()));
    212         setAlignment (int (QLabel::WordBreak | QLabel::AlignTop));
     217        setAlignment (int (Qt::AlignTop));
    213218        /* install show-parent-widget watcher */
    214219        aParent->topLevelWidget()->installEventFilter (this);
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