summaryrefslogtreecommitdiffstats
path: root/tools/designer/app/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:29:01 +0900
commita7f1e6e2552d9cdbb3d76bff089db522248b9a24 (patch)
tree2e6dd07698083df817163d572443aaf6fdd26651 /tools/designer/app/main.cpp
parent2584dba8aabfa2db8297dcfa258d33545ed6af43 (diff)
downloadtqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.tar.gz
tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/app/main.cpp')
-rw-r--r--tools/designer/app/main.cpp14
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 );