From a9cfcd75daef74e494a2632af260f1f92b834b4a Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Oct 2011 19:05:08 +0000 Subject: TQt port tqt3integration git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1259732 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../utils/qt/in/qtkdeintegration_x11_1.cpp | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp') diff --git a/tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp b/tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp index 0fe1b3baf..ec9c976d8 100644 --- a/tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp +++ b/tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp @@ -18,56 +18,56 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "qtkdeintegration_x11_p.h" +#include "tqtkdeintegration_x11_p.h" -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -bool QKDEIntegration::inited = false; -bool QKDEIntegration::enable = false; +bool TQKDEIntegration::inited = false; +bool TQKDEIntegration::enable = false; -bool QKDEIntegration::enabled() +bool TQKDEIntegration::enabled() { if( !inited ) initLibrary(); return enable; } -static QCString findLibrary() +static TQCString findLibrary() { if( getenv( "KDE_FULL_SESSION" ) == NULL ) return ""; if( getenv( "KDE_FULL_SESSION" )[ 0 ] != 't' && getenv( "KDE_FULL_SESSION" )[ 0 ] != '1' ) return ""; - if( getenv( "QT_NO_KDE_INTEGRATION" ) == NULL - || getenv( "QT_NO_KDE_INTEGRATION" )[ 0 ] == '0' ) + if( getenv( "TQT_NO_KDE_INTEGRATION" ) == NULL + || getenv( "TQT_NO_KDE_INTEGRATION" )[ 0 ] == '0' ) { - return QCString( QTKDELIBDIR ) + "/libqtkde"; + return TQCString( TQTKDELIBDIR ) + "/libqtkde"; } return ""; } -static long parentToWinId( const QWidget* w ) +static long parentToWinId( const TQWidget* w ) { if( w != NULL ) - return w->topLevelWidget()->winId(); + return w->tqtopLevelWidget()->winId(); // try to find some usable parent - if( qApp->activeWindow() && w != qApp->activeWindow()) - return qApp->activeWindow()->winId(); - if( qApp->mainWidget() && w != qApp->mainWidget()) - return qApp->mainWidget()->winId(); + if( tqApp->activeWindow() && w != tqApp->activeWindow()) + return tqApp->activeWindow()->winId(); + if( tqApp->mainWidget() && w != tqApp->mainWidget()) + return tqApp->mainWidget()->winId(); return 0; } -inline static QFont fontPtrToFontRef( const QFont* f ) +inline static TQFont fontPtrToFontRef( const TQFont* f ) { - return f != NULL ? *f : QFont(); + return f != NULL ? *f : TQFont(); } // --- -- cgit v1.2.3