VirtualBox

Ignore:
Timestamp:
May 19, 2008 3:20:50 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Removed last Qt3 support warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r8915 r8920  
    37683768        foreach(w, list)
    37693769        {
    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))
    37723772                break;
    37733773            if (aRecursive)
     
    37813781    }
    37823782
    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)
    37883790            break;
    37893791    }
    3790     return (QWidget *) obj;
     3792    return child;
    37913793}
    37923794
     
    41684170    vm_state_color.insert (KMachineState_Discarding,     new QColor(Qt::green));
    41694171
    4170     /* Redefine default large and small icon sizes. In particular, it is
    4171      * necessary to consider both 32px and 22px icon sizes as Large when we
    4172      * explicitly define them as Large (seems to be a bug in
    4173      * QToolButton::sizeHint()). */
    4174 #warning port me
    4175 //    QIcon::setIconSize (QIcon::Small, QSize (16, 16));
    4176 //    QIcon::setIconSize (QIcon::Large, QSize (22, 22));
    4177 
    41784172    qApp->installEventFilter (this);
    41794173
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