Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/tools/uic/cpp/cppwriteinitialization.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    156156                if (!isIconFormat44(dri)) {
    157157                    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());
    159159                        qWarning("%s", qPrintable(msg));
    160160                        return false;
     
    166166            if (const DomResourcePixmap *drp = p->elementPixmap())
    167167                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());
    169169                    qWarning("%s", qPrintable(msg));
    170170                    return false;
     
    540540
    541541        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());
    543545            continue;
    544546        } 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());
    546550            continue;
    547551        }
     
    868872
    869873        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());
    871877            continue;
    872878        }
     
    896902        newGroup->setAttributeName(attributeName);
    897903        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());
    899907    }
    900908    const QString groupName = m_driver->findOrInsertButtonGroup(group);
     
    11641172        }
    11651173    } 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());
    11671177        return;
    11681178    }
     
    18541864
    18551865        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());
    18571869            continue;
    18581870        }
     
    20842096        break;
    20852097    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()));
    20872100        return QLatin1String("QIcon()");
    20882101        break;
     
    25742587
    25752588    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()));
    25772590        return;
    25782591    }
     
    26142627
    26152628    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()));
    26172630        return;
    26182631    }
Note: See TracChangeset for help on using the changeset viewer.