tools/designer/src/lib/shared/qdesigner_propertysheet.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   691     return true;
   691     return true;
   692 }
   692 }
   693 
   693 
   694 bool QDesignerPropertySheet::canAddDynamicProperty(const QString &propName) const
   694 bool QDesignerPropertySheet::canAddDynamicProperty(const QString &propName) const
   695 {
   695 {
       
   696     // used internally
       
   697     if (propName == QLatin1String("database") ||
       
   698         propName == QLatin1String("buttonGroupId"))
       
   699         return false;
   696     const int index = d->m_meta->indexOfProperty(propName);
   700     const int index = d->m_meta->indexOfProperty(propName);
   697     if (index != -1)
   701     if (index != -1)
   698         return false; // property already exists and is not a dynamic one
   702         return false; // property already exists and is not a dynamic one
   699     if (d->m_addIndex.contains(propName)) {
   703     if (d->m_addIndex.contains(propName)) {
   700         const int idx = d->m_addIndex.value(propName);
   704         const int idx = d->m_addIndex.value(propName);