|
|
@ -2833,7 +2833,7 @@ void generateClass() // generate C++ source code for a class
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const char *hdr1 = "/****************************************************************************\n"
|
|
|
|
const char *hdr1 = "/****************************************************************************\n"
|
|
|
|
"** %s meta object code from reading C++ file '%s'\n**\n";
|
|
|
|
"** %s meta object code from reading C++ file '%s'\n**\n";
|
|
|
|
const char *hdr2 = "** Created: %s\n";
|
|
|
|
const char *hdr2 = "** Created by: The Qt Meta Object Compiler version %d (Qt %s)\n";
|
|
|
|
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
|
|
|
|
const char *hdr3 = "** WARNING! All changes made in this file will be lost!\n";
|
|
|
|
const char *hdr4 = "*****************************************************************************/\n\n";
|
|
|
|
const char *hdr4 = "*****************************************************************************/\n\n";
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
@ -2863,8 +2863,6 @@ void generateClass() // generate C++ source code for a class
|
|
|
|
g->gen_count++;
|
|
|
|
g->gen_count++;
|
|
|
|
|
|
|
|
|
|
|
|
if ( g->gen_count == 1 ) { // first class to be generated
|
|
|
|
if ( g->gen_count == 1 ) { // first class to be generated
|
|
|
|
QDateTime dt = QDateTime::currentDateTime();
|
|
|
|
|
|
|
|
QCString dstr = dt.toString().ascii();
|
|
|
|
|
|
|
|
QCString fn = g->fileName;
|
|
|
|
QCString fn = g->fileName;
|
|
|
|
i = g->fileName.length()-1;
|
|
|
|
i = g->fileName.length()-1;
|
|
|
|
while ( i>0 && g->fileName[i-1] != '/' && g->fileName[i-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 )
|
|
|
|
if ( i >= 0 )
|
|
|
|
fn = &g->fileName[i];
|
|
|
|
fn = &g->fileName[i];
|
|
|
|
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
|
|
|
|
fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn);
|
|
|
|
fprintf( out, hdr2, (const char*)dstr );
|
|
|
|
fprintf( out, hdr2, formatRevision, QT_VERSION_STR );
|
|
|
|
fprintf( out, "%s", hdr3 );
|
|
|
|
fprintf( out, "%s", hdr3 );
|
|
|
|
fprintf( out, "%s", hdr4 );
|
|
|
|
fprintf( out, "%s", hdr4 );
|
|
|
|
|
|
|
|
|
|
|
|