diff options
-rw-r--r-- | qmake/generators/makefile.cpp | 3 | ||||
-rw-r--r-- | qmake/generators/projectgenerator.cpp | 2 | ||||
-rw-r--r-- | qmake/generators/unix/unixmake2.cpp | 3 | ||||
-rw-r--r-- | src/moc/moc.y | 6 | ||||
-rw-r--r-- | src/moc/moc_yacc.cpp | 6 | ||||
-rw-r--r-- | tools/designer/uic/embed.cpp | 2 | ||||
-rw-r--r-- | tools/designer/uic/main.cpp | 2 |
7 files changed, 9 insertions, 15 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index c41f8e82f..307288e0d 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -2142,10 +2142,9 @@ TQString MakefileGenerator::build_args() bool MakefileGenerator::writeHeader(TQTextStream &t) { - time_t foo = time(NULL); t << "#############################################################################" << endl; t << "# Makefile for building: " << var("TARGET") << endl; - t << "# Generated by qmake (" << qmake_version() << ") (TQt " << TQT_VERSION_STR << ") on: " << ctime(&foo); + t << "# Generated by qmake (" << qmake_version() << ") (TQt " << TQT_VERSION_STR << ")" << endl; t << "# Project: " << fileFixify(project->projectFile()) << endl; t << "# Template: " << var("TEMPLATE") << endl; t << "# Command: " << build_args() << endl; diff --git a/qmake/generators/projectgenerator.cpp b/qmake/generators/projectgenerator.cpp index 18b976728..0bc44a599 100644 --- a/qmake/generators/projectgenerator.cpp +++ b/qmake/generators/projectgenerator.cpp @@ -345,7 +345,7 @@ bool ProjectGenerator::writeMakefile(TQTextStream &t) { t << "######################################################################" << endl; - t << "# Automatically generated by qmake (" << qmake_version() << ") " << TQDateTime::currentDateTime().toString() << endl; + t << "# Automatically generated by qmake (" << qmake_version() << ") " << endl; t << "######################################################################" << endl << endl; TQStringList::Iterator it; for(it = Option::before_user_vars.begin(); it != Option::before_user_vars.end(); ++it) diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index 789176b9c..8ea7e367b 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -1452,9 +1452,8 @@ UnixMakefileGenerator::writeLibtoolFile() TQTextStream t(&ft); t << "# " << lname << " - a libtool library file\n"; - time_t now = time(NULL); t << "# Generated by qmake/libtool (" << qmake_version() << ") (TQt " - << TQT_VERSION_STR << ") on: " << ctime(&now) << "\n"; + << TQT_VERSION_STR << ")\n"; t << "# The name that we can dlopen(3).\n" << "dlname='" << var(project->isActiveConfig("plugin") ? "TARGET" : "TARGET_x") diff --git a/src/moc/moc.y b/src/moc/moc.y index cfd8af0cb..86fd20dea 100644 --- a/src/moc/moc.y +++ b/src/moc/moc.y @@ -2833,7 +2833,7 @@ void generateClass() // generate C++ source code for a class { const char *hdr1 = "/****************************************************************************\n" "** %s meta object code from reading C++ file '%s'\n**\n"; - const char *hdr2 = "** Created: %s\n"; + const char *hdr2 = "** Created by: The TQt Meta Object Compiler version %d (TQt %s)\n"; const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n"; const char *hdr4 = "*****************************************************************************/\n\n"; int i; @@ -2863,8 +2863,6 @@ void generateClass() // generate C++ source code for a class g->gen_count++; if ( g->gen_count == 1 ) { // first class to be generated - TQDateTime dt = TQDateTime::currentDateTime(); - TQCString dstr = dt.toString().ascii(); TQCString fn = g->fileName; i = g->fileName.length()-1; while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' ) @@ -2872,7 +2870,7 @@ void generateClass() // generate C++ source code for a class if ( i >= 0 ) fn = &g->fileName[i]; fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn); - fprintf( out, hdr2, (const char*)dstr ); + fprintf( out, hdr2, formatRevision, TQT_VERSION_STR ); fprintf( out, "%s", hdr3 ); fprintf( out, "%s", hdr4 ); diff --git a/src/moc/moc_yacc.cpp b/src/moc/moc_yacc.cpp index f5c59d84a..85da933d7 100644 --- a/src/moc/moc_yacc.cpp +++ b/src/moc/moc_yacc.cpp @@ -5708,7 +5708,7 @@ void generateClass() // generate C++ source code for a class { const char *hdr1 = "/****************************************************************************\n" "** %s meta object code from reading C++ file '%s'\n**\n"; - const char *hdr2 = "** Created: %s\n"; + const char *hdr2 = "** Created by: The TQt Meta Object Compiler version %d (TQt %s)\n"; const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n"; const char *hdr4 = "*****************************************************************************/\n\n"; int i; @@ -5738,8 +5738,6 @@ void generateClass() // generate C++ source code for a class g->gen_count++; if ( g->gen_count == 1 ) { // first class to be generated - TQDateTime dt = TQDateTime::currentDateTime(); - TQCString dstr = dt.toString().ascii(); TQCString fn = g->fileName; i = g->fileName.length()-1; while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-1] != '\\' ) @@ -5747,7 +5745,7 @@ void generateClass() // generate C++ source code for a class if ( i >= 0 ) fn = &g->fileName[i]; fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn); - fprintf( out, hdr2, (const char*)dstr ); + fprintf( out, hdr2, formatRevision, TQT_VERSION_STR ); fprintf( out, "%s", hdr3 ); fprintf( out, "%s", hdr4 ); diff --git a/tools/designer/uic/embed.cpp b/tools/designer/uic/embed.cpp index 937e1cce6..9352a917e 100644 --- a/tools/designer/uic/embed.cpp +++ b/tools/designer/uic/embed.cpp @@ -137,7 +137,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima for ( it = images.begin(); it != images.end(); ++it ) out << "** " << *it << "\n"; out << "**\n"; - out << "** Created: " << TQDateTime::currentDateTime().toString() << "\n"; + out << "** Created by: The TQt user interface compiler (TQt " << TQT_VERSION_STR << ")\n"; out << "**\n"; out << "** WARNING! All changes made in this file will be lost!\n"; out << "****************************************************************************/\n"; diff --git a/tools/designer/uic/main.cpp b/tools/designer/uic/main.cpp index b0048e5bd..af06821e2 100644 --- a/tools/designer/uic/main.cpp +++ b/tools/designer/uic/main.cpp @@ -320,7 +320,7 @@ int main( int argc, char * argv[] ) out << "/****************************************************************************" << endl; out << "** Form "<< (impl? "implementation" : "interface") << " generated from reading ui file '" << fileName << "'" << endl; out << "**" << endl; - out << "** Created: " << TQDateTime::currentDateTime().toString() << endl; + out << "** Created by: The TQt user interface compiler (TQt " << TQT_VERSION_STR << ")" << endl; out << "**" << endl; out << "** WARNING! All changes made in this file will be lost!" << endl; out << "****************************************************************************/" << endl << endl; |