Changeset 7220 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h
- Timestamp:
- Feb 29, 2008 3:35:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxUtils.h
r6812 r7220 22 22 #include <qobject.h> 23 23 #include <qevent.h> 24 #include <q listview.h>25 #include <q textedit.h>24 #include <q3listview.h> 25 #include <q3textedit.h> 26 26 #include <qlabel.h> 27 27 #include <qlayout.h> 28 //Added by qt3to4: 29 #include <QPixmap> 30 #include <QResizeEvent> 31 #include <QMouseEvent> 32 #include <QKeyEvent> 28 33 29 34 /** … … 36 41 public: 37 42 38 QIListViewSelectionPreserver (QObject *parent, Q ListView *alv)43 QIListViewSelectionPreserver (QObject *parent, Q3ListView *alv) 39 44 : QObject (parent), lv (alv) 40 45 { … … 60 65 private: 61 66 62 Q ListView *lv;67 Q3ListView *lv; 63 68 }; 64 69 … … 72 77 public: 73 78 74 QIKeyFilter (QObject *aParent, Key aKey) : QObject (aParent), mKey (aKey) {}79 QIKeyFilter (QObject *aParent, Qt::Key aKey) : QObject (aParent), mKey (aKey) {} 75 80 76 81 void watchOn (QObject *o) { o->installEventFilter (this); } … … 94 99 } 95 100 96 Key mKey;101 Qt::Key mKey; 97 102 }; 98 103 … … 171 176 * for getting more compact layout. 172 177 */ 173 class QITextEdit : public Q TextEdit178 class QITextEdit : public Q3TextEdit 174 179 { 175 180 Q_OBJECT … … 178 183 179 184 QITextEdit (QWidget *aParent) 180 : Q TextEdit (aParent) {}185 : Q3TextEdit (aParent) {} 181 186 182 187 QSize sizeHint() const … … 210 215 0, 0, 211 216 sizePolicy().hasHeightForWidth())); 212 setAlignment (int (Q Label::WordBreak | QLabel::AlignTop));217 setAlignment (int (Qt::AlignTop)); 213 218 /* install show-parent-widget watcher */ 214 219 aParent->topLevelWidget()->installEventFilter (this);
Note:
See TracChangeset
for help on using the changeset viewer.