diff options
Diffstat (limited to 'tools/designer/app/main.cpp')
| -rw-r--r-- | tools/designer/app/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/designer/app/main.cpp b/tools/designer/app/main.cpp index e0bb62f1a..a464c51bd 100644 --- a/tools/designer/app/main.cpp +++ b/tools/designer/app/main.cpp @@ -72,7 +72,7 @@ static void signalHandler( QT_SIGNAL_ARGS ) #if 0 // ### what's this dead code for? FormWindow* totop; #endif - bool haveit = FALSE; + bool haveit = false; while ( fw ) { haveit = haveit || fw->fileName() == arg; #if 0 // ### what's this dead code for? @@ -118,7 +118,7 @@ int main( int argc, char *argv[] ) DesignerApplication::setOverrideCursor( TQt::WaitCursor ); - bool creatPid = FALSE; + bool creatPid = false; if ( a.argc() > 1 ) { TQString arg1 = a.argv()[ 1 ]; if ( arg1 == "-client" ) { @@ -135,12 +135,12 @@ int main( int argc, char *argv[] ) f.close(); #if defined(Q_OS_UNIX) if ( kill( pidStr.toInt(), SIGUSR1 ) == -1 ) - creatPid = TRUE; + creatPid = true; else return 0; #elif defined(Q_OS_WIN32) if ( !GetProcessVersion( pidStr.toUInt() ) ) { - creatPid = TRUE; + creatPid = true; } else { if ( a.winVersion() & TQt::WV_NT_based ) SendMessage( HWND_BROADCAST, RegisterWindowMessage((TCHAR*)"QT_DESIGNER_OPEN_FILE"), 0, 0 ); @@ -150,11 +150,11 @@ int main( int argc, char *argv[] ) } #endif } else { - creatPid = TRUE; + creatPid = true; } } else if(arg1 == "-debug_stderr") { extern bool debugToStderr; //outputwindow.cpp - debugToStderr = TRUE; + debugToStderr = true; } } @@ -191,7 +191,7 @@ int main( int argc, char *argv[] ) MainWindow *mw = new MainWindow( creatPid ); a.setMainWidget( mw ); mw->setCaption( "TQt Designer by Trolltech" ); - if ( config.readBoolEntry( keybase + "Geometries/MainwindowMaximized", FALSE ) ) { + if ( config.readBoolEntry( keybase + "Geometries/MainwindowMaximized", false ) ) { int x = config.readNumEntry( keybase + "Geometries/MainwindowX", 0 ); int y = config.readNumEntry( keybase + "Geometries/MainwindowY", 0 ); mw->move( x, y ); |
