diff options
Diffstat (limited to 'qtinterface/tqstring.cpp')
-rw-r--r-- | qtinterface/tqstring.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qtinterface/tqstring.cpp b/qtinterface/tqstring.cpp index b8a28ef..3ab8d5b 100644 --- a/qtinterface/tqstring.cpp +++ b/qtinterface/tqstring.cpp @@ -40,4 +40,12 @@ int Q3CString::contains( const char *a ) const return d.count( a ); } +QString::operator bool () const +{ + if (this == QString::null) + return false; + else + return true; +} + #endif // USE_QT4
\ No newline at end of file |