Changeset 651 for trunk/src/tools/uic3/ui3reader.cpp
- Timestamp:
- Mar 8, 2010, 12:52:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.2 (added) merged: 650 /branches/vendor/nokia/qt/current merged: 649 /branches/vendor/nokia/qt/4.6.1 removed
- Property svn:mergeinfo changed
-
trunk/src/tools/uic3/ui3reader.cpp
r561 r651 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 20 09Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 177 177 outputFileName.clear(); 178 178 trmacro.clear(); 179 nofwd = false;180 179 181 180 fileName.clear(); … … 242 241 } 243 242 244 Ui3Reader::Ui3Reader(QTextStream &outStream) 245 : out(outStream), trout(&languageChangeBody) 246 { 247 m_porting = new Porting(); 248 m_extractImages = false; 243 Ui3Reader::Ui3Reader(QTextStream &outStream, unsigned options) : 244 m_options(options), out(outStream), trout(&languageChangeBody), 245 m_porting(new Porting), m_extractImages(false) 246 { 249 247 } 250 248 … … 256 254 void Ui3Reader::generate(const QString &fn, const QString &outputFn, 257 255 QDomDocument doc, bool decl, bool subcl, const QString &trm, 258 const QString& subClass, bool omitForwardDecls, bool implicitIncludes,const QString &convertedUiFile)256 const QString& subClass, const QString &convertedUiFile) 259 257 { 260 258 init(); … … 263 261 outputFileName = outputFn; 264 262 trmacro = trm; 265 nofwd = omitForwardDecls;266 263 267 264 QDomElement e = parse(doc); … … 282 279 } else { 283 280 if (decl) 284 createFormDecl(e , implicitIncludes);281 createFormDecl(e); 285 282 else 286 283 createFormImpl(e); … … 289 286 } 290 287 291 void Ui3Reader::generateUi4(const QString &fn, const QString &outputFn, QDomDocument doc , bool implicitIncludes)288 void Ui3Reader::generateUi4(const QString &fn, const QString &outputFn, QDomDocument doc) 292 289 { 293 290 init(); … … 296 293 outputFileName = outputFn; 297 294 298 DomUI *ui = generateUi4(parse(doc) , implicitIncludes);295 DomUI *ui = generateUi4(parse(doc)); 299 296 if (!ui) 300 297 return; … … 316 313 { 317 314 this->trmacro = trmacro; 318 }319 320 void Ui3Reader::setForwardDeclarationsEnabled(bool b)321 {322 nofwd = !b;323 315 } 324 316
Note:
See TracChangeset
for help on using the changeset viewer.