Changeset 846 for trunk/src/tools/uic/cpp/cppwriteinitialization.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/tools/uic/cpp/cppwriteinitialization.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 156 156 if (!isIconFormat44(dri)) { 157 157 if (dri->text().isEmpty()) { 158 const QString msg = QString::fromUtf8("%1: An invalid icon property '%2' was encountered.").arg(fileName).arg(p->attributeName());158 const QString msg = QString::fromUtf8("%1: Warning: An invalid icon property '%2' was encountered.").arg(fileName).arg(p->attributeName()); 159 159 qWarning("%s", qPrintable(msg)); 160 160 return false; … … 166 166 if (const DomResourcePixmap *drp = p->elementPixmap()) 167 167 if (drp->text().isEmpty()) { 168 const QString msg = QString::fromUtf8("%1: An invalid pixmap property '%2' was encountered.").arg(fileName).arg(p->attributeName());168 const QString msg = QString::fromUtf8("%1: Warning: An invalid pixmap property '%2' was encountered.").arg(fileName).arg(p->attributeName()); 169 169 qWarning("%s", qPrintable(msg)); 170 170 return false; … … 540 540 541 541 if (!m_registeredWidgets.contains(b.objName)) { 542 fprintf(stderr, "'%s' isn't a valid widget\n", b.objName.toLatin1().data()); 542 fprintf(stderr, "%s: Warning: Buddy assignment: '%s' is not a valid widget.\n", 543 qPrintable(m_option.messagePrefix()), 544 b.objName.toLatin1().data()); 543 545 continue; 544 546 } else if (!m_registeredWidgets.contains(b.buddy)) { 545 fprintf(stderr, "'%s' isn't a valid widget\n", b.buddy.toLatin1().data()); 547 fprintf(stderr, "%s: Warning: Buddy assignment: '%s' is not a valid widget.\n", 548 qPrintable(m_option.messagePrefix()), 549 b.buddy.toLatin1().data()); 546 550 continue; 547 551 } … … 868 872 869 873 if (!m_registeredWidgets.contains(name)) { 870 fprintf(stderr, "'%s' isn't a valid widget\n", name.toLatin1().data()); 874 fprintf(stderr, "%s: Warning: Z-order assignment: '%s' is not a valid widget.\n", 875 qPrintable(m_option.messagePrefix()), 876 name.toLatin1().data()); 871 877 continue; 872 878 } … … 896 902 newGroup->setAttributeName(attributeName); 897 903 group = newGroup; 898 fprintf(stderr, "Warning: Creating button group `%s'\n", attributeName.toLatin1().data()); 904 fprintf(stderr, "%s: Warning: Creating button group `%s'\n", 905 qPrintable(m_option.messagePrefix()), 906 attributeName.toLatin1().data()); 899 907 } 900 908 const QString groupName = m_driver->findOrInsertButtonGroup(group); … … 1164 1172 } 1165 1173 } else if (!(m_driver->actionByName(actionName) || isSeparator)) { 1166 fprintf(stderr, "Warning: action `%s' not declared\n", actionName.toLatin1().data()); 1174 fprintf(stderr, "%s: Warning: action `%s' not declared\n", 1175 qPrintable(m_option.messagePrefix()), 1176 actionName.toLatin1().data()); 1167 1177 return; 1168 1178 } … … 1854 1864 1855 1865 if (!m_registeredWidgets.contains(name)) { 1856 fprintf(stderr, "'%s' isn't a valid widget\n", name.toLatin1().data()); 1866 fprintf(stderr, "%s: Warning: Tab-stop assignment: '%s' is not a valid widget.\n", 1867 qPrintable(m_option.messagePrefix()), 1868 name.toLatin1().data()); 1857 1869 continue; 1858 1870 } … … 2084 2096 break; 2085 2097 default: 2086 qWarning() << "Warning: Unknown icon format encountered. The ui-file was generated with a too-recent version of Designer."; 2098 qWarning("%s: Warning: Unknown icon format encountered. The ui-file was generated with a too-recent version of Designer.", 2099 qPrintable(m_option.messagePrefix())); 2087 2100 return QLatin1String("QIcon()"); 2088 2101 break; … … 2574 2587 2575 2588 if (table.isEmpty() || connection.isEmpty()) { 2576 fprintf(stderr, " invalid database connection\n");2589 fprintf(stderr, "%s: Warning: Invalid database connection\n", qPrintable(m_option.messagePrefix())); 2577 2590 return; 2578 2591 } … … 2614 2627 2615 2628 if (table.isEmpty() || connection.isEmpty()) { 2616 fprintf(stderr, " invalid database connection\n");2629 fprintf(stderr, "%s: Warning: Invalid database connection\n", qPrintable(m_option.messagePrefix())); 2617 2630 return; 2618 2631 }
Note:
See TracChangeset
for help on using the changeset viewer.