diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 15:17:51 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-08 19:38:03 +0900 |
| commit | 7d612f7c91d55501276a385a30dbadb121e7bd9f (patch) | |
| tree | 4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqkeysequence.cpp | |
| parent | 5a863a8932d14b99c5f838c4efa1618070d71b29 (diff) | |
| download | tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip | |
Replace TRUE/FALSE with boolean values true/false - part 8
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqkeysequence.cpp')
| -rw-r--r-- | src/kernel/tqkeysequence.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/tqkeysequence.cpp b/src/kernel/tqkeysequence.cpp index 659057784..007bf83be 100644 --- a/src/kernel/tqkeysequence.cpp +++ b/src/kernel/tqkeysequence.cpp @@ -337,8 +337,8 @@ uint TQKeySequence::count() const /*! - Returns TRUE if the key sequence is empty; otherwise returns - FALSE. + Returns true if the key sequence is empty; otherwise returns + false. */ bool TQKeySequence::isEmpty() const { @@ -422,7 +422,7 @@ int TQKeySequence::decodeString( const TQString& str ) if ( sl.contains( (*it).name ) ) { ret |= (*it).qt_key; #ifndef TQT_NO_REGEXP - accel.remove( TQRegExp(TQRegExp::escape((*it).name), FALSE) ); + accel.remove( TQRegExp(TQRegExp::escape((*it).name), false) ); #else accel.remove( (*it).name ); #endif @@ -448,13 +448,13 @@ int TQKeySequence::decodeString( const TQString& str ) } else { // Check through translation table for the correct key name // ...or fall back on english table. - bool found = FALSE; + bool found = false; for ( int tran = 0; tran < 2; tran++ ) { for ( int i = 0; keyname[i].name; i++ ) { if ( tran ? accel == TQAccel::tr(keyname[i].name) : accel == keyname[i].name ) { ret |= keyname[i].key; - found = TRUE; + found = true; break; } } @@ -648,8 +648,8 @@ TQKeySequence &TQKeySequence::operator=( const TQKeySequence & keysequence ) /*! - Returns TRUE if \a keysequence is equal to this key - sequence; otherwise returns FALSE. + Returns true if \a keysequence is equal to this key + sequence; otherwise returns false. */ @@ -663,8 +663,8 @@ bool TQKeySequence::operator==( const TQKeySequence& keysequence ) const /*! - Returns TRUE if \a keysequence is not equal to this key sequence; - otherwise returns FALSE. + Returns true if \a keysequence is not equal to this key sequence; + otherwise returns false. */ bool TQKeySequence::operator!= ( const TQKeySequence& keysequence ) const { |
