Changeset 8920 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- May 19, 2008 3:20:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r8915 r8920 3768 3768 foreach(w, list) 3769 3769 { 3770 if ((!aName || strcmp (w-> name(), aName) == 0) &&3771 (!aClassName || strcmp (w-> className(), aClassName) == 0))3770 if ((!aName || strcmp (w->objectName().toAscii().constData(), aName) == 0) && 3771 (!aClassName || strcmp (w->metaObject()->className(), aClassName) == 0)) 3772 3772 break; 3773 3773 if (aRecursive) … … 3781 3781 } 3782 3782 3783 QObjectList list = aParent->queryList (aName, aClassName, false, true); 3784 QObject *obj = NULL; 3785 foreach(obj, list) 3786 { 3787 if (obj->isWidgetType()) 3783 /* Find the first children of aParent with the appropriate properties. 3784 * Please note that this call is recursivly. */ 3785 QList<QWidget *> list = qFindChildren<QWidget *> (aParent, aName); 3786 QWidget *child = NULL; 3787 foreach(child, list) 3788 { 3789 if (!aClassName || strcmp (child->metaObject()->className(), aClassName) == 0) 3788 3790 break; 3789 3791 } 3790 return (QWidget *) obj;3792 return child; 3791 3793 } 3792 3794 … … 4168 4170 vm_state_color.insert (KMachineState_Discarding, new QColor(Qt::green)); 4169 4171 4170 /* Redefine default large and small icon sizes. In particular, it is4171 * necessary to consider both 32px and 22px icon sizes as Large when we4172 * explicitly define them as Large (seems to be a bug in4173 * QToolButton::sizeHint()). */4174 #warning port me4175 // QIcon::setIconSize (QIcon::Small, QSize (16, 16));4176 // QIcon::setIconSize (QIcon::Large, QSize (22, 22));4177 4178 4172 qApp->installEventFilter (this); 4179 4173
Note:
See TracChangeset
for help on using the changeset viewer.