1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../qt/170529.patch
5 # Copyright (C) 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- 3/src/widgets/qtextedit.cpp Mon Jul 16 10:44:40 CEST 2007
18 +++ 3/src/widgets/qtextedit.cpp Mon Jul 16 10:44:40 CEST 2007
24 - qWarning( "QTextEdit::optimParseTags: no left-tag for '<" + tag->tag + ">' in line %d.", tag->line + 1 );
25 + qWarning( "QTextEdit::optimParseTags: no left-tag for '<%s>' in line %d.", tag->tag.ascii(), tag->line + 1 );
27 return; // something is wrong - give up
31 } else if ( !cur->leftTag ) {
33 - qWarning( "QTextEdit::optimParseTags: mismatching %s-tag for '<" + cur->tag + ">' in line %d.", cur->tag[0] == '/' ? "left" : "right", cur->line + 1 );
34 + qWarning( "QTextEdit::optimParseTags: mismatching %s-tag for '<%s>' in line %d.", cur->tag[0] == '/' ? "left" : "right", cur->tag.ascii(), cur->line + 1 );
36 return; // something is amiss - give up
38 --- 3/src/sql/qdatatable.cpp Mon Jul 16 10:45:03 CEST 2007
39 +++ 3/src/sql/qdatatable.cpp Mon Jul 16 10:45:03 CEST 2007
43 if ( !sqlCursor()->canInsert() ) {
45 - qWarning("QDataTable::insertCurrent: insert not allowed for " +
46 - sqlCursor()->name() );
47 + qWarning("QDataTable::insertCurrent: insert not allowed for %s",
48 + sqlCursor()->name().latin1() );
52 @@ -1117,16 +1117,16 @@
54 if ( sqlCursor()->primaryIndex().count() == 0 ) {
56 - qWarning("QDataTable::updateCurrent: no primary index for " +
57 - sqlCursor()->name() );
58 + qWarning("QDataTable::updateCurrent: no primary index for %s",
59 + sqlCursor()->name().latin1() );
64 if ( !sqlCursor()->canUpdate() ) {
66 - qWarning("QDataTable::updateCurrent: updates not allowed for " +
67 - sqlCursor()->name() );
68 + qWarning("QDataTable::updateCurrent: updates not allowed for %s",
69 + sqlCursor()->name().latin1() );
75 if ( sqlCursor()->primaryIndex().count() == 0 ) {
77 - qWarning("QDataTable::deleteCurrent: no primary index " +
78 - sqlCursor()->name() );
79 + qWarning("QDataTable::deleteCurrent: no primary index %s",
80 + sqlCursor()->name().latin1() );
85 --- 3/src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
86 +++ 3/src/sql/qsqldatabase.cpp Mon Jul 16 10:45:03 CEST 2007
92 - qWarning("QSqlDatabaseManager::database: unable to open database: " + db->lastError().databaseText() + ": " + db->lastError().driverText() );
93 + qWarning("QSqlDatabaseManager::database: unable to open database: %s: %s",
94 + db->lastError().databaseText().latin1(), db->lastError().driverText().latin1() );
100 #ifdef QT_CHECK_RANGE
101 qWarning( "QSqlDatabase: %s driver not loaded", type.latin1() );
102 - qWarning( "QSqlDatabase: available drivers: " + drivers().join(" ") );
103 + qWarning( "QSqlDatabase: available drivers: %s", drivers().join(" ").latin1() );
105 d->driver = new QNullDriver();
106 d->driver->setLastError( QSqlError( "Driver not loaded", "Driver not loaded" ) );
108 --- 3/src/sql/qsqlindex.cpp Mon Jul 16 10:45:03 CEST 2007
109 +++ 3/src/sql/qsqlindex.cpp Mon Jul 16 10:45:03 CEST 2007
113 newSort.append( *field, desc );
115 - qWarning( "QSqlIndex::fromStringList: unknown field: '" + f + "'" );
116 + qWarning( "QSqlIndex::fromStringList: unknown field: '%s'", f.latin1());
121 --- 3/src/sql/qsqlrecord.cpp Mon Jul 16 10:45:03 CEST 2007
122 +++ 3/src/sql/qsqlrecord.cpp Mon Jul 16 10:45:03 CEST 2007
127 #ifdef QT_CHECK_RANGE
128 - qWarning( "QSqlRecord::position: unable to find field " + name );
129 + qWarning( "QSqlRecord::position: unable to find field %s", name.latin1() );
135 if ( !sh->d->contains( i ) ) {
136 #ifdef QT_CHECK_RANGE
137 - qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
138 + qWarning( "QSqlRecord::field: index out of range: %d", i );
144 if ( !sh->d->contains( i ) ) {
145 #ifdef QT_CHECK_RANGE
146 - qWarning( "QSqlRecord::field: index out of range: " + QString::number( i ) );
147 + qWarning( "QSqlRecord::field: index out of range: %d", i );
148 #endif // QT_CHECK_RANGE
152 --- 3/src/tools/qglobal.cpp Mon Jul 16 10:45:03 CEST 2007
153 +++ 3/src/tools/qglobal.cpp Mon Jul 16 10:45:03 CEST 2007
157 qWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
160 + qWarning( "%s", msg );
165 --- 3/src/xml/qsvgdevice.cpp Mon Jul 16 10:45:03 CEST 2007
166 +++ 3/src/xml/qsvgdevice.cpp Mon Jul 16 10:45:03 CEST 2007
169 // ### catch references to embedded .svg files
171 if ( !pix.load( href ) ) {
172 - qWarning( "QSvgDevice::play: Couldn't load image "+href );
173 + qWarning( "QSvgDevice::play: Couldn't load image %s", href.latin1() );
176 pt->drawPixmap( QRect( x1, y1, w, h ), pix );
177 @@ -1024,8 +1024,8 @@
181 - qWarning( "QSvgDevice::play: unknown element type " +
183 + qWarning( "QSvgDevice::play: unknown element type %s",
184 + node.nodeName().latin1() );
188 @@ -1111,7 +1111,7 @@
190 QRegExp reg( QString::fromLatin1("([+-]?\\d*\\.*\\d*[Ee]?[+-]?\\d*)(em|ex|px|%|pt|pc|cm|mm|in|)$") );
191 if ( reg.search( str ) == -1 ) {
192 - qWarning( "QSvgDevice::parseLen: couldn't parse " + str );
193 + qWarning( "QSvgDevice::parseLen: couldn't parse %s ", str.latin1() );
197 @@ -1140,7 +1140,7 @@
198 else if ( u == "pc" )
199 dbl *= m.logicalDpiX() / 6.0;
201 - qWarning( "QSvgDevice::parseLen: Unknown unit " + u );
202 + qWarning( "QSvgDevice::parseLen: Unknown unit %s", u.latin1() );