1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the tools applications of the Qt Toolkit. |
7 ** This file is part of the tools applications of the Qt Toolkit. |
8 ** |
8 ** |
1219 // special case for the property `geometry': Do not use position |
1219 // special case for the property `geometry': Do not use position |
1220 if (isTopLevel && propertyName == QLatin1String("geometry") && p->elementRect()) { |
1220 if (isTopLevel && propertyName == QLatin1String("geometry") && p->elementRect()) { |
1221 const DomRect *r = p->elementRect(); |
1221 const DomRect *r = p->elementRect(); |
1222 m_output << m_indent << varName << "->resize(" << r->elementWidth() << ", " << r->elementHeight() << ");\n"; |
1222 m_output << m_indent << varName << "->resize(" << r->elementWidth() << ", " << r->elementHeight() << ");\n"; |
1223 continue; |
1223 continue; |
1224 } else if (propertyName == QLatin1String("buttonGroupId") && buttonGroupWidget) { // Q3ButtonGroup support |
1224 } else if (propertyName == QLatin1String("buttonGroupId")) { // Q3ButtonGroup support |
1225 m_output << m_indent << m_driver->findOrInsertWidget(buttonGroupWidget) << "->insert(" |
1225 if (buttonGroupWidget) |
1226 << varName << ", " << p->elementNumber() << ");\n"; |
1226 m_output << m_indent << m_driver->findOrInsertWidget(buttonGroupWidget) << "->insert(" |
|
1227 << varName << ", " << p->elementNumber() << ");\n"; |
1227 continue; |
1228 continue; |
1228 } else if (propertyName == QLatin1String("currentRow") // QListWidget::currentRow |
1229 } else if (propertyName == QLatin1String("currentRow") // QListWidget::currentRow |
1229 && m_uic->customWidgetsInfo()->extends(className, QLatin1String("QListWidget"))) { |
1230 && m_uic->customWidgetsInfo()->extends(className, QLatin1String("QListWidget"))) { |
1230 m_delayedOut << m_indent << varName << "->setCurrentRow(" |
1231 m_delayedOut << m_indent << varName << "->setCurrentRow(" |
1231 << p->elementNumber() << ");\n"; |
1232 << p->elementNumber() << ");\n"; |