Changeset 561 for trunk/src/tools/uic3/subclassing.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/tools/uic3/subclassing.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 70 70 71 71 out << "class " << subClass << " : public " << nameOfClass << endl; 72 out << "{"<< endl;72 out << '{' << endl; 73 73 74 74 /* tmake ignore Q_OBJECT */ … … 106 106 QString returnType = n.attribute(QLatin1String("returnType"), QLatin1String("void")); 107 107 QString functionName = n.firstChild().toText().data().trimmed(); 108 if ( functionName.endsWith(QLatin1 String(";")))109 functionName = functionName.left( functionName.length() - 1);108 if ( functionName.endsWith(QLatin1Char(';'))) 109 functionName.chop(1); 110 110 QString specifier = n.attribute(QLatin1String("specifier")); 111 111 QString access = n.attribute(QLatin1String("access")); … … 134 134 QString returnType = n.attribute(QLatin1String("returnType"), QLatin1String("void")); 135 135 QString functionName = n.firstChild().toText().data().trimmed(); 136 if ( functionName.endsWith(QLatin1 String(";")) )137 functionName = functionName.left( functionName.length() - 1);136 if ( functionName.endsWith(QLatin1Char(';')) ) 137 functionName.chop(1); 138 138 QString specifier = n.attribute(QLatin1String("specifier")); 139 139 QString access = n.attribute(QLatin1String("access")); … … 196 196 if ( *it3 == QLatin1String("non virtual") ) 197 197 continue; 198 out << " " << type << " " << fixDeclaration(*it) << ";"<< endl;198 out << " " << type << ' ' << fixDeclaration(*it) << ';' << endl; 199 199 } 200 200 out << endl; … … 224 224 out << " *" << endl; 225 225 out << " * The " << objClass.mid(1).toLower() << " will by default be modeless, unless you set 'modal' to" << endl; 226 out << " * true to construct a modal " << objClass.mid(1).toLower() << "."<< endl;226 out << " * true to construct a modal " << objClass.mid(1).toLower() << '.' << endl; 227 227 out << " */" << endl; 228 228 out << subClass << "::" << subClass << "( QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl )" << endl; … … 236 236 out << " : " << nameOfClass << "( parent, name, fl )" << endl; 237 237 } 238 out << "{"<< endl;239 out << "}"<< endl;238 out << '{' << endl; 239 out << '}' << endl; 240 240 out << endl; 241 241 … … 245 245 out << " */" << endl; 246 246 out << subClass << "::~" << subClass << "()" << endl; 247 out << "{"<< endl;247 out << '{' << endl; 248 248 out << " // no need to delete child widgets, Qt does it all for us" << endl; 249 out << "}"<< endl;249 out << '}' << endl; 250 250 out << endl; 251 251 … … 269 269 QString returnType = n.attribute(QLatin1String("returnType"), QLatin1String("void")); 270 270 QString functionName = n.firstChild().toText().data().trimmed(); 271 if ( functionName.endsWith(QLatin1 String(";")) )272 functionName = functionName.left( functionName.length() - 1);271 if ( functionName.endsWith(QLatin1Char(';')) ) 272 functionName.chop(1); 273 273 QString specifier = n.attribute(QLatin1String("specifier")); 274 274 QString access = n.attribute(QLatin1String("access")); … … 297 297 QString returnType = n.attribute(QLatin1String("returnType"), QLatin1String("void")); 298 298 QString functionName = n.firstChild().toText().data().trimmed(); 299 if ( functionName.endsWith(QLatin1 String(";")) )300 functionName = functionName.left( functionName.length() - 1);299 if ( functionName.endsWith(QLatin1Char(';')) ) 300 functionName.chop(1); 301 301 QString specifier = n.attribute(QLatin1String("specifier")); 302 302 QString access = n.attribute(QLatin1String("access")); … … 352 352 out << " * " << descr << endl; 353 353 out << " */" << endl; 354 out << type << " "<< subClass << "::" << fixDeclaration(*it) << endl;355 out << "{"<< endl;354 out << type << ' ' << subClass << "::" << fixDeclaration(*it) << endl; 355 out << '{' << endl; 356 356 out << " qWarning( \"" << subClass << "::" << fixDeclaration(*it) << " not yet implemented!\" );" << endl; 357 out << "}"<< endl << endl;357 out << '}' << endl << endl; 358 358 } 359 359 out << endl;
Note:
See TracChangeset
for help on using the changeset viewer.