src/tools/uic/customwidgetsinfo.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    86         className = extends;
    86         className = extends;
    87     }
    87     }
    88     return false;
    88     return false;
    89 }
    89 }
    90 
    90 
       
    91 bool CustomWidgetsInfo::isCustomWidgetContainer(const QString &className) const
       
    92 {
       
    93     if (const DomCustomWidget *dcw = m_customWidgets.value(className, 0))
       
    94         if (dcw->hasElementContainer())
       
    95             return dcw->elementContainer() != 0;
       
    96     return false;
       
    97 }
       
    98 
    91 QString CustomWidgetsInfo::realClassName(const QString &className) const
    99 QString CustomWidgetsInfo::realClassName(const QString &className) const
    92 {
   100 {
    93     if (className == QLatin1String("Line"))
   101     if (className == QLatin1String("Line"))
    94         return QLatin1String("QFrame");
   102         return QLatin1String("QFrame");
    95 
   103