diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-19 19:05:08 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-19 19:05:08 +0000 |
commit | a9cfcd75daef74e494a2632af260f1f92b834b4a (patch) | |
tree | 389c56a24143b4c04985d9d74959843c7e7851d3 /tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp | |
parent | 337f18fe5d032a59084a5d6516bcb0ff070128b6 (diff) | |
download | tdebase-a9cfcd75daef74e494a2632af260f1f92b834b4a.tar.gz tdebase-a9cfcd75daef74e494a2632af260f1f92b834b4a.zip |
TQt port tqt3integration
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1259732 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp')
-rw-r--r-- | tqt3integration/utils/qt/in/qtkdeintegration_x11_1.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
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 <qcolordialog.h> -#include <qfiledialog.h> -#include <qfontdialog.h> -#include <qlibrary.h> -#include <qregexp.h> -#include <qmessagebox.h> -#include <qapplication.h> +#include <tqcolordialog.h> +#include <tqfiledialog.h> +#include <tqfontdialog.h> +#include <tqlibrary.h> +#include <tqregexp.h> +#include <tqmessagebox.h> +#include <tqapplication.h> #include <stdlib.h> -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(); } // --- |