diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-02 13:19:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 10:33:33 +0900 |
commit | 35ae72ca02b756a4829dca2f3642652739b6a2bd (patch) | |
tree | 0d13159afe4f3eba0fdb7cc23372667794b96e8e /puic/main.cpp | |
parent | 8e2be4fd190957e3fc2c37ab19deed3299f4e3d3 (diff) | |
download | libtqt-perl-r14.1.4.tar.gz libtqt-perl-r14.1.4.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f3c7a90bfa0646afefeaa7af84edf625cdadf78d)
Diffstat (limited to 'puic/main.cpp')
-rw-r--r-- | puic/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/puic/main.cpp b/puic/main.cpp index d6411ee..bb36782 100644 --- a/puic/main.cpp +++ b/puic/main.cpp @@ -46,10 +46,10 @@ void getDBConnections( Uic& uic, TQString& s); int main( int argc, char * argv[] ) { PyIndent indent; - bool execCode = FALSE; - bool subcl = FALSE; - bool imagecollection = FALSE; - bool imagecollection_tmpfile = FALSE; + bool execCode = false; + bool subcl = false; + bool imagecollection = false; + bool imagecollection_tmpfile = false; TQStringList images; const char *error = 0; const char* fileName = 0; @@ -58,9 +58,9 @@ int main( int argc, char * argv[] ) TQCString image_tmpfile; const char* projectName = 0; const char* trmacro = 0; - bool nofwd = FALSE; - bool fix = FALSE; - TQApplication app(argc, argv, FALSE); + bool nofwd = false; + bool fix = false; + TQApplication app(argc, argv, false); TQString uicClass; @@ -78,7 +78,7 @@ int main( int argc, char * argv[] ) } else outputFile = &opt[1]; } else if ( opt[0] == 'e' || opt == "embed" ) { - imagecollection = TRUE; + imagecollection = true; if ( opt == "embed" || opt[1] == '\0' ) { if ( !(n < argc-2) ) { error = "Missing arguments."; @@ -89,14 +89,14 @@ int main( int argc, char * argv[] ) projectName = &opt[1]; } if ( argc > n+1 && qstrcmp( argv[n+1], "-f" ) == 0 ) { - imagecollection_tmpfile = TRUE; + imagecollection_tmpfile = true; image_tmpfile = argv[n+2]; n += 2; } } else if ( opt == "nofwd" ) { - nofwd = TRUE; + nofwd = true; } else if ( opt == "subimpl" ) { - subcl = TRUE; + subcl = true; if ( !(n < argc-2) ) { error = "Missing arguments."; break; @@ -120,7 +120,7 @@ int main( int argc, char * argv[] ) } else if ( opt == "help" ) { break; } else if ( opt == "fix" ) { - fix = TRUE; + fix = true; } else if ( opt[0] == 'p' ) { uint tabstop; bool ok; @@ -139,7 +139,7 @@ int main( int argc, char * argv[] ) else error = "Invalid indent"; } else if ( opt == "x" ) { - execCode = TRUE; + execCode = true; } else { error = TQString( "Unrecognized option " + opt ).latin1(); } |