From 5774d0780734ba03e9e65abb13d9799761c34ae4 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Fri, 28 Sep 2018 14:42:37 +0900
Subject: qt -> tqt conversion: kdeqt -> kdetqt qtkde -> tqtkde qtdesigner ->
 tqtdesigner

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 include/private/qtkdeintegration_x11_p.h  |   1 -
 include/private/tqtkdeintegration_x11_p.h |   1 +
 src/dialogs/qcolordialog.cpp              |   2 +-
 src/dialogs/qfiledialog.cpp               |   2 +-
 src/dialogs/qfontdialog.cpp               |   2 +-
 src/dialogs/qmessagebox.cpp               |   2 +-
 src/kernel/ntqt.h                         |   2 +-
 src/kernel/qt_x11.pri                     |   4 +-
 src/kernel/qtkdeintegration_x11.cpp       | 244 ------------------------------
 src/kernel/qtkdeintegration_x11_p.h       |  62 --------
 src/kernel/tqtkdeintegration_x11.cpp      | 244 ++++++++++++++++++++++++++++++
 src/kernel/tqtkdeintegration_x11_p.h      |  62 ++++++++
 12 files changed, 314 insertions(+), 314 deletions(-)
 delete mode 120000 include/private/qtkdeintegration_x11_p.h
 create mode 120000 include/private/tqtkdeintegration_x11_p.h
 delete mode 100644 src/kernel/qtkdeintegration_x11.cpp
 delete mode 100644 src/kernel/qtkdeintegration_x11_p.h
 create mode 100644 src/kernel/tqtkdeintegration_x11.cpp
 create mode 100644 src/kernel/tqtkdeintegration_x11_p.h

diff --git a/include/private/qtkdeintegration_x11_p.h b/include/private/qtkdeintegration_x11_p.h
deleted file mode 120000
index 7bbc0318a..000000000
--- a/include/private/qtkdeintegration_x11_p.h
+++ /dev/null
@@ -1 +0,0 @@
-../../src/kernel/qtkdeintegration_x11_p.h
\ No newline at end of file
diff --git a/include/private/tqtkdeintegration_x11_p.h b/include/private/tqtkdeintegration_x11_p.h
new file mode 120000
index 000000000..c7777a4c5
--- /dev/null
+++ b/include/private/tqtkdeintegration_x11_p.h
@@ -0,0 +1 @@
+../../src/kernel/tqtkdeintegration_x11_p.h
\ No newline at end of file
diff --git a/src/dialogs/qcolordialog.cpp b/src/dialogs/qcolordialog.cpp
index 7efb55ff6..ac27d6c34 100644
--- a/src/dialogs/qcolordialog.cpp
+++ b/src/dialogs/qcolordialog.cpp
@@ -64,7 +64,7 @@ TQColor macGetColor( const TQColor& initial, TQWidget *parent, const char *name
 #endif
 
 #ifdef Q_WS_X11
-#include "private/qtkdeintegration_x11_p.h"
+#include "private/tqtkdeintegration_x11_p.h"
 #endif
 
 //////////// TQWellArray BEGIN
diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp
index 9e95e0c55..ae1b5ab34 100644
--- a/src/dialogs/qfiledialog.cpp
+++ b/src/dialogs/qfiledialog.cpp
@@ -96,7 +96,7 @@
 #include "ntqwidgetstack.h"
 
 #ifdef Q_WS_X11
-#include "private/qtkdeintegration_x11_p.h"
+#include "private/tqtkdeintegration_x11_p.h"
 #endif
 
 #ifdef Q_WS_WIN
diff --git a/src/dialogs/qfontdialog.cpp b/src/dialogs/qfontdialog.cpp
index 2dcf7b530..0eee95a8c 100644
--- a/src/dialogs/qfontdialog.cpp
+++ b/src/dialogs/qfontdialog.cpp
@@ -60,7 +60,7 @@
 #include <ntqvalidator.h>
 
 #ifdef Q_WS_X11
-#include "private/qtkdeintegration_x11_p.h"
+#include "private/tqtkdeintegration_x11_p.h"
 #endif
 
 /*!
diff --git a/src/dialogs/qmessagebox.cpp b/src/dialogs/qmessagebox.cpp
index b27ce1a82..23e1d5cde 100644
--- a/src/dialogs/qmessagebox.cpp
+++ b/src/dialogs/qmessagebox.cpp
@@ -58,7 +58,7 @@
 
 
 #ifdef Q_WS_X11
-#include "private/qtkdeintegration_x11_p.h"
+#include "private/tqtkdeintegration_x11_p.h"
 #endif
 
 extern bool tqt_use_native_dialogs;
diff --git a/src/kernel/ntqt.h b/src/kernel/ntqt.h
index 6a2a54289..e4fc40a67 100644
--- a/src/kernel/ntqt.h
+++ b/src/kernel/ntqt.h
@@ -314,7 +314,7 @@
 
 
 #ifdef Q_WS_X11
-#include "private/qtkdeintegration_x11_p.h"
+#include "private/tqtkdeintegration_x11_p.h"
 #endif
 
 #ifdef Q_WS_MAC
diff --git a/src/kernel/qt_x11.pri b/src/kernel/qt_x11.pri
index 06db6859b..b20081f04 100644
--- a/src/kernel/qt_x11.pri
+++ b/src/kernel/qt_x11.pri
@@ -11,8 +11,8 @@ unix {
 	SOURCES += $$KERNEL_CPP/qtaddons_x11.cpp
 	PRECOMPILED_HEADER = kernel/qt_pch.h
         
-        SOURCES += $$KERNEL_CPP/qtkdeintegration_x11.cpp
-        HEADERS += $$KERNEL_H/qtkdeintegration_x11_p.h
+        SOURCES += $$KERNEL_CPP/tqtkdeintegration_x11.cpp
+        HEADERS += $$KERNEL_H/tqtkdeintegration_x11_p.h
 }
 
 nas {
diff --git a/src/kernel/qtkdeintegration_x11.cpp b/src/kernel/qtkdeintegration_x11.cpp
deleted file mode 100644
index 9c16896f2..000000000
--- a/src/kernel/qtkdeintegration_x11.cpp
+++ /dev/null
@@ -1,244 +0,0 @@
-/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
-   OpenSUSE as part of their GPLed TQt library disribution */
-
-#include "qtkdeintegration_x11_p.h"
-
-#include <ntqcolordialog.h>
-#include <ntqfiledialog.h>
-#include <ntqfontdialog.h>
-#include <ntqlibrary.h>
-#include <ntqregexp.h>
-#include <ntqmessagebox.h>
-#include <stdlib.h>
-
-bool TQKDEIntegration::inited = false;
-bool TQKDEIntegration::enable = false;
-
-bool TQKDEIntegration::enabled()
-    {
-    if( !inited )
-        initLibrary();
-    return enable;
-    }
-
-static TQCString findLibrary()
-    {
-    if( getenv( "QT_NO_KDE_INTEGRATION" ) == NULL
-        || getenv( "QT_NO_KDE_INTEGRATION" )[ 0 ] == '0' )
-        {
-#ifdef USE_LIB64_PATHES
-        return "/opt/kde3/lib64/kde3/plugins/integration/libtqtkde";
-#else
-        return "/opt/kde3/lib/kde3/plugins/integration/libtqtkde";
-#endif
-        }
-    return "";
-    }
-
-inline static long widgetToWinId( const TQWidget* w )
-    {
-    return w != NULL ? w->winId() : 0;
-    }
-
-inline static TQFont fontPtrToFontRef( const TQFont* f )
-    {
-    return f != NULL ? *f : TQFont();
-    }
-
-// ---
-static bool (*qtkde_initializeIntegration)( );
-static TQStringList (*qtkde_getOpenFileNames)( const TQString& filter, TQString* workingDirectory,
-    long parent, const TQCString& name, const TQString& caption, TQString* selectedFilter,
-    bool multiple );
-static TQString (*qtkde_getSaveFileName)( const TQString& initialSelection, const TQString& filter,
-    TQString* workingDirectory, long parent, const TQCString& name, const TQString& caption,
-    TQString* selectedFilter );
-static TQString (*qtkde_getExistingDirectory)( const TQString& initialDirectory, long parent,
-    const TQCString& name, const TQString& caption );
-static TQColor (*qtkde_getColor)( const TQColor& color, long parent, const TQCString& name );
-static TQFont (*qtkde_getFont)( bool* ok, const TQFont& def, long parent, const TQCString& name );
-static int (*qtkde_messageBox1)( int type, long parent, const TQString& caption, const TQString& text,
-    int button0, int button1, int button2 );
-static int (*qtkde_messageBox2)( int type, long parent, const TQString& caption, const TQString& text,
-    const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton );
-
-void TQKDEIntegration::initLibrary()
-    {
-    if( !inited )
-        {
-        enable = false;
-        inited = true;
-        TQString libpath = findLibrary();
-        if( libpath.isEmpty())
-            return;
-        TQLibrary lib( libpath );
-        lib.setAutoUnload( false );
-        qtkde_initializeIntegration = (
-            bool (*)( )
-            )
-            lib.resolve("initializeIntegration");
-        if( qtkde_initializeIntegration == NULL )
-            return;
-        qtkde_getOpenFileNames = (
-            TQStringList (*)( const TQString& filter, TQString* workingDirectory, long parent,
-                const TQCString& name, const TQString& caption, TQString* selectedFilter,
-                bool multiple )
-            )
-            lib.resolve("getOpenFileNames");
-        if( qtkde_getOpenFileNames == NULL )
-            return;
-        qtkde_getSaveFileName = (
-            TQString (*)( const TQString& initialSelection, const TQString& filter, TQString* workingDirectory,
-                long parent, const TQCString& name, const TQString& caption, TQString* selectedFilter )
-            )
-            lib.resolve("getSaveFileName");
-        if( qtkde_getSaveFileName == NULL )
-            return;
-        qtkde_getExistingDirectory = (
-            TQString (*)( const TQString& initialDirectory, long parent, const TQCString& name,
-                const TQString& caption )
-            )
-            lib.resolve("getExistingDirectory");
-        if( qtkde_getExistingDirectory == NULL )
-            return;
-        qtkde_getColor = (
-            TQColor (*)( const TQColor& color, long parent, const TQCString& name )
-            )
-            lib.resolve("getColor");
-        if( qtkde_getColor == NULL )
-            return;
-        qtkde_getFont = (
-            TQFont (*)( bool* ok, const TQFont& def, long parent, const TQCString& name )
-            )
-            lib.resolve("getFont");
-        if( qtkde_getFont == NULL )
-            return;
-        qtkde_messageBox1 = (
-            int (*)( int type, long parent, const TQString& caption, const TQString& text,
-                int button0, int button1, int button2 )
-            )
-            lib.resolve("messageBox1");
-        if( qtkde_messageBox1 == NULL )
-            return;
-        qtkde_messageBox2 = (
-            int (*)( int type, long parent, const TQString& caption, const TQString& text,
-                const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-                int defaultButton, int escapeButton )
-            )
-            lib.resolve("messageBox2");
-        if( qtkde_messageBox2 == NULL )
-            return;
-        enable = qtkde_initializeIntegration();
-        }
-    }
-
-bool TQKDEIntegration::initializeIntegration( )
-    {
-    return qtkde_initializeIntegration(
-         );
-    }
-TQStringList TQKDEIntegration::getOpenFileNames( const TQString& filter, TQString* workingDirectory,
-    TQWidget* parent, const char* name, const TQString& caption, TQString* selectedFilter,
-    bool multiple )
-    {
-    return qtkde_getOpenFileNames(
-        filter, workingDirectory, widgetToWinId( parent ), name, caption, selectedFilter, multiple );
-    }
-TQString TQKDEIntegration::getSaveFileName( const TQString& initialSelection, const TQString& filter,
-    TQString* workingDirectory, TQWidget* parent, const char* name, const TQString& caption,
-    TQString* selectedFilter )
-    {
-    return qtkde_getSaveFileName(
-        initialSelection, filter, workingDirectory, widgetToWinId( parent ), name, caption, selectedFilter );
-    }
-TQString TQKDEIntegration::getExistingDirectory( const TQString& initialDirectory, TQWidget* parent,
-    const char* name, const TQString& caption )
-    {
-    return qtkde_getExistingDirectory(
-        initialDirectory, widgetToWinId( parent ), name, caption );
-    }
-TQColor TQKDEIntegration::getColor( const TQColor& color, TQWidget* parent, const char* name )
-    {
-    return qtkde_getColor(
-        color, widgetToWinId( parent ), name );
-    }
-TQFont TQKDEIntegration::getFont( bool* ok, const TQFont* def, TQWidget* parent, const char* name )
-    {
-    return qtkde_getFont(
-        ok, fontPtrToFontRef( def ), widgetToWinId( parent ), name );
-    }
-int TQKDEIntegration::messageBox1( int type, TQWidget* parent, const TQString& caption,
-    const TQString& text, int button0, int button1, int button2 )
-    {
-    return qtkde_messageBox1(
-        type, widgetToWinId( parent ), caption, text, button0, button1, button2 );
-    }
-int TQKDEIntegration::messageBox2( int type, TQWidget* parent, const TQString& caption,
-    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton )
-    {
-    return qtkde_messageBox2(
-        type, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
-    }
-// ---
-
-int TQKDEIntegration::information( TQWidget* parent, const TQString& caption,
-    const TQString& text, int button0, int button1, int button2 )
-    {
-    return qtkde_messageBox1(
-        TQMessageBox::Information, widgetToWinId( parent ), caption, text, button0, button1, button2 );
-    }
-
-int TQKDEIntegration::question( TQWidget* parent, const TQString& caption,
-    const TQString& text, int button0, int button1, int button2 )
-    {
-    return qtkde_messageBox1(
-        TQMessageBox::Question, widgetToWinId( parent ), caption, text, button0, button1, button2 );
-    }
-
-int TQKDEIntegration::warning( TQWidget* parent, const TQString& caption,
-    const TQString& text, int button0, int button1, int button2 )
-    {
-    return qtkde_messageBox1(
-        TQMessageBox::Warning, widgetToWinId( parent ), caption, text, button0, button1, button2 );
-    }
-
-int TQKDEIntegration::critical( TQWidget* parent, const TQString& caption,
-    const TQString& text, int button0, int button1, int button2 )
-    {
-    return qtkde_messageBox1(
-        TQMessageBox::Critical, widgetToWinId( parent ), caption, text, button0, button1, button2 );
-    }
-
-int TQKDEIntegration::information( TQWidget* parent, const TQString& caption,
-    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton )
-    {
-    return qtkde_messageBox2(
-        TQMessageBox::Information, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
-    }
-
-int TQKDEIntegration::question( TQWidget* parent, const TQString& caption,
-    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton )
-    {
-    return qtkde_messageBox2(
-        TQMessageBox::Question, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
-    }
-
-int TQKDEIntegration::warning( TQWidget* parent, const TQString& caption,
-    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton )
-    {
-    return qtkde_messageBox2(
-        TQMessageBox::Warning, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
-    }
-
-int TQKDEIntegration::critical( TQWidget* parent, const TQString& caption,
-    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-    int defaultButton, int escapeButton )
-    {
-    return qtkde_messageBox2(
-        TQMessageBox::Critical, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
-    }
diff --git a/src/kernel/qtkdeintegration_x11_p.h b/src/kernel/qtkdeintegration_x11_p.h
deleted file mode 100644
index 10ee4443b..000000000
--- a/src/kernel/qtkdeintegration_x11_p.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
-   OpenSUSE as part of their GPLed TQt library disribution */
-
-#ifndef TQKDEINTEGRATION_H
-#define TQKDEINTEGRATION_H
-
-#include <ntqstringlist.h>
-
-class TQLibrary;
-class TQWidget;
-class TQColor;
-class TQFont;
-
-class TQKDEIntegration
-    {
-    public:
-        static bool enabled();
-// --- 
-        static bool initializeIntegration( );
-        static TQStringList getOpenFileNames( const TQString& filter, TQString* workingDirectory,
-            TQWidget* parent, const char* name, const TQString& caption, TQString* selectedFilter,
-            bool multiple );
-        static TQString getSaveFileName( const TQString& initialSelection, const TQString& filter,
-            TQString* workingDirectory, TQWidget* parent, const char* name, const TQString& caption,
-            TQString* selectedFilter );
-        static TQString getExistingDirectory( const TQString& initialDirectory, TQWidget* parent,
-            const char* name, const TQString& caption );
-        static TQColor getColor( const TQColor& color, TQWidget* parent, const char* name );
-        static TQFont getFont( bool* ok, const TQFont* def, TQWidget* parent, const char* name );
-        static int messageBox1( int type, TQWidget* parent, const TQString& caption,
-            const TQString& text, int button0, int button1, int button2 );
-        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
-            int button0, int button1, int button2 );
-        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
-            int button0, int button1, int button2 );
-        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
-            int button0, int button1, int button2 );
-        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
-            int button0, int button1, int button2 );
-        static int messageBox2( int type, TQWidget* parent, const TQString& caption,
-            const TQString& text, const TQString& button0Text, const TQString& button1Text,
-            const TQString& button2Text, int defaultButton, int escapeButton );
-        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
-            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-            int defaultButton, int escapeButton );
-        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
-            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-            int defaultButton, int escapeButton );
-        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
-            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-            int defaultButton, int escapeButton );
-        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
-            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
-            int defaultButton, int escapeButton );
-// ---
-    private:
-        static void initLibrary();
-        static bool inited;
-        static bool enable;
-    };
-
-#endif
diff --git a/src/kernel/tqtkdeintegration_x11.cpp b/src/kernel/tqtkdeintegration_x11.cpp
new file mode 100644
index 000000000..0dae849c1
--- /dev/null
+++ b/src/kernel/tqtkdeintegration_x11.cpp
@@ -0,0 +1,244 @@
+/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
+   OpenSUSE as part of their GPLed TQt library disribution */
+
+#include "tqtkdeintegration_x11_p.h"
+
+#include <ntqcolordialog.h>
+#include <ntqfiledialog.h>
+#include <ntqfontdialog.h>
+#include <ntqlibrary.h>
+#include <ntqregexp.h>
+#include <ntqmessagebox.h>
+#include <stdlib.h>
+
+bool TQKDEIntegration::inited = false;
+bool TQKDEIntegration::enable = false;
+
+bool TQKDEIntegration::enabled()
+    {
+    if( !inited )
+        initLibrary();
+    return enable;
+    }
+
+static TQCString findLibrary()
+    {
+    if( getenv( "QT_NO_KDE_INTEGRATION" ) == NULL
+        || getenv( "QT_NO_KDE_INTEGRATION" )[ 0 ] == '0' )
+        {
+#ifdef USE_LIB64_PATHES
+        return "/opt/kde3/lib64/kde3/plugins/integration/libtqtkde";
+#else
+        return "/opt/kde3/lib/kde3/plugins/integration/libtqtkde";
+#endif
+        }
+    return "";
+    }
+
+inline static long widgetToWinId( const TQWidget* w )
+    {
+    return w != NULL ? w->winId() : 0;
+    }
+
+inline static TQFont fontPtrToFontRef( const TQFont* f )
+    {
+    return f != NULL ? *f : TQFont();
+    }
+
+// ---
+static bool (*tqtkde_initializeIntegration)( );
+static TQStringList (*tqtkde_getOpenFileNames)( const TQString& filter, TQString* workingDirectory,
+    long parent, const TQCString& name, const TQString& caption, TQString* selectedFilter,
+    bool multiple );
+static TQString (*tqtkde_getSaveFileName)( const TQString& initialSelection, const TQString& filter,
+    TQString* workingDirectory, long parent, const TQCString& name, const TQString& caption,
+    TQString* selectedFilter );
+static TQString (*tqtkde_getExistingDirectory)( const TQString& initialDirectory, long parent,
+    const TQCString& name, const TQString& caption );
+static TQColor (*tqtkde_getColor)( const TQColor& color, long parent, const TQCString& name );
+static TQFont (*tqtkde_getFont)( bool* ok, const TQFont& def, long parent, const TQCString& name );
+static int (*tqtkde_messageBox1)( int type, long parent, const TQString& caption, const TQString& text,
+    int button0, int button1, int button2 );
+static int (*tqtkde_messageBox2)( int type, long parent, const TQString& caption, const TQString& text,
+    const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton );
+
+void TQKDEIntegration::initLibrary()
+    {
+    if( !inited )
+        {
+        enable = false;
+        inited = true;
+        TQString libpath = findLibrary();
+        if( libpath.isEmpty())
+            return;
+        TQLibrary lib( libpath );
+        lib.setAutoUnload( false );
+        tqtkde_initializeIntegration = (
+            bool (*)( )
+            )
+            lib.resolve("initializeIntegration");
+        if( tqtkde_initializeIntegration == NULL )
+            return;
+        tqtkde_getOpenFileNames = (
+            TQStringList (*)( const TQString& filter, TQString* workingDirectory, long parent,
+                const TQCString& name, const TQString& caption, TQString* selectedFilter,
+                bool multiple )
+            )
+            lib.resolve("getOpenFileNames");
+        if( tqtkde_getOpenFileNames == NULL )
+            return;
+        tqtkde_getSaveFileName = (
+            TQString (*)( const TQString& initialSelection, const TQString& filter, TQString* workingDirectory,
+                long parent, const TQCString& name, const TQString& caption, TQString* selectedFilter )
+            )
+            lib.resolve("getSaveFileName");
+        if( tqtkde_getSaveFileName == NULL )
+            return;
+        tqtkde_getExistingDirectory = (
+            TQString (*)( const TQString& initialDirectory, long parent, const TQCString& name,
+                const TQString& caption )
+            )
+            lib.resolve("getExistingDirectory");
+        if( tqtkde_getExistingDirectory == NULL )
+            return;
+        tqtkde_getColor = (
+            TQColor (*)( const TQColor& color, long parent, const TQCString& name )
+            )
+            lib.resolve("getColor");
+        if( tqtkde_getColor == NULL )
+            return;
+        tqtkde_getFont = (
+            TQFont (*)( bool* ok, const TQFont& def, long parent, const TQCString& name )
+            )
+            lib.resolve("getFont");
+        if( tqtkde_getFont == NULL )
+            return;
+        tqtkde_messageBox1 = (
+            int (*)( int type, long parent, const TQString& caption, const TQString& text,
+                int button0, int button1, int button2 )
+            )
+            lib.resolve("messageBox1");
+        if( tqtkde_messageBox1 == NULL )
+            return;
+        tqtkde_messageBox2 = (
+            int (*)( int type, long parent, const TQString& caption, const TQString& text,
+                const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+                int defaultButton, int escapeButton )
+            )
+            lib.resolve("messageBox2");
+        if( tqtkde_messageBox2 == NULL )
+            return;
+        enable = tqtkde_initializeIntegration();
+        }
+    }
+
+bool TQKDEIntegration::initializeIntegration( )
+    {
+    return tqtkde_initializeIntegration(
+         );
+    }
+TQStringList TQKDEIntegration::getOpenFileNames( const TQString& filter, TQString* workingDirectory,
+    TQWidget* parent, const char* name, const TQString& caption, TQString* selectedFilter,
+    bool multiple )
+    {
+    return tqtkde_getOpenFileNames(
+        filter, workingDirectory, widgetToWinId( parent ), name, caption, selectedFilter, multiple );
+    }
+TQString TQKDEIntegration::getSaveFileName( const TQString& initialSelection, const TQString& filter,
+    TQString* workingDirectory, TQWidget* parent, const char* name, const TQString& caption,
+    TQString* selectedFilter )
+    {
+    return tqtkde_getSaveFileName(
+        initialSelection, filter, workingDirectory, widgetToWinId( parent ), name, caption, selectedFilter );
+    }
+TQString TQKDEIntegration::getExistingDirectory( const TQString& initialDirectory, TQWidget* parent,
+    const char* name, const TQString& caption )
+    {
+    return tqtkde_getExistingDirectory(
+        initialDirectory, widgetToWinId( parent ), name, caption );
+    }
+TQColor TQKDEIntegration::getColor( const TQColor& color, TQWidget* parent, const char* name )
+    {
+    return tqtkde_getColor(
+        color, widgetToWinId( parent ), name );
+    }
+TQFont TQKDEIntegration::getFont( bool* ok, const TQFont* def, TQWidget* parent, const char* name )
+    {
+    return tqtkde_getFont(
+        ok, fontPtrToFontRef( def ), widgetToWinId( parent ), name );
+    }
+int TQKDEIntegration::messageBox1( int type, TQWidget* parent, const TQString& caption,
+    const TQString& text, int button0, int button1, int button2 )
+    {
+    return tqtkde_messageBox1(
+        type, widgetToWinId( parent ), caption, text, button0, button1, button2 );
+    }
+int TQKDEIntegration::messageBox2( int type, TQWidget* parent, const TQString& caption,
+    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton )
+    {
+    return tqtkde_messageBox2(
+        type, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
+    }
+// ---
+
+int TQKDEIntegration::information( TQWidget* parent, const TQString& caption,
+    const TQString& text, int button0, int button1, int button2 )
+    {
+    return tqtkde_messageBox1(
+        TQMessageBox::Information, widgetToWinId( parent ), caption, text, button0, button1, button2 );
+    }
+
+int TQKDEIntegration::question( TQWidget* parent, const TQString& caption,
+    const TQString& text, int button0, int button1, int button2 )
+    {
+    return tqtkde_messageBox1(
+        TQMessageBox::Question, widgetToWinId( parent ), caption, text, button0, button1, button2 );
+    }
+
+int TQKDEIntegration::warning( TQWidget* parent, const TQString& caption,
+    const TQString& text, int button0, int button1, int button2 )
+    {
+    return tqtkde_messageBox1(
+        TQMessageBox::Warning, widgetToWinId( parent ), caption, text, button0, button1, button2 );
+    }
+
+int TQKDEIntegration::critical( TQWidget* parent, const TQString& caption,
+    const TQString& text, int button0, int button1, int button2 )
+    {
+    return tqtkde_messageBox1(
+        TQMessageBox::Critical, widgetToWinId( parent ), caption, text, button0, button1, button2 );
+    }
+
+int TQKDEIntegration::information( TQWidget* parent, const TQString& caption,
+    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton )
+    {
+    return tqtkde_messageBox2(
+        TQMessageBox::Information, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
+    }
+
+int TQKDEIntegration::question( TQWidget* parent, const TQString& caption,
+    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton )
+    {
+    return tqtkde_messageBox2(
+        TQMessageBox::Question, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
+    }
+
+int TQKDEIntegration::warning( TQWidget* parent, const TQString& caption,
+    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton )
+    {
+    return tqtkde_messageBox2(
+        TQMessageBox::Warning, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
+    }
+
+int TQKDEIntegration::critical( TQWidget* parent, const TQString& caption,
+    const TQString& text, const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+    int defaultButton, int escapeButton )
+    {
+    return tqtkde_messageBox2(
+        TQMessageBox::Critical, widgetToWinId( parent ), caption, text, button0Text, button1Text, button2Text, defaultButton, escapeButton );
+    }
diff --git a/src/kernel/tqtkdeintegration_x11_p.h b/src/kernel/tqtkdeintegration_x11_p.h
new file mode 100644
index 000000000..10ee4443b
--- /dev/null
+++ b/src/kernel/tqtkdeintegration_x11_p.h
@@ -0,0 +1,62 @@
+/* This file is licensed under the terms of the GPL v2 or v3, as it has been publicly released by
+   OpenSUSE as part of their GPLed TQt library disribution */
+
+#ifndef TQKDEINTEGRATION_H
+#define TQKDEINTEGRATION_H
+
+#include <ntqstringlist.h>
+
+class TQLibrary;
+class TQWidget;
+class TQColor;
+class TQFont;
+
+class TQKDEIntegration
+    {
+    public:
+        static bool enabled();
+// --- 
+        static bool initializeIntegration( );
+        static TQStringList getOpenFileNames( const TQString& filter, TQString* workingDirectory,
+            TQWidget* parent, const char* name, const TQString& caption, TQString* selectedFilter,
+            bool multiple );
+        static TQString getSaveFileName( const TQString& initialSelection, const TQString& filter,
+            TQString* workingDirectory, TQWidget* parent, const char* name, const TQString& caption,
+            TQString* selectedFilter );
+        static TQString getExistingDirectory( const TQString& initialDirectory, TQWidget* parent,
+            const char* name, const TQString& caption );
+        static TQColor getColor( const TQColor& color, TQWidget* parent, const char* name );
+        static TQFont getFont( bool* ok, const TQFont* def, TQWidget* parent, const char* name );
+        static int messageBox1( int type, TQWidget* parent, const TQString& caption,
+            const TQString& text, int button0, int button1, int button2 );
+        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
+            int button0, int button1, int button2 );
+        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
+            int button0, int button1, int button2 );
+        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
+            int button0, int button1, int button2 );
+        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
+            int button0, int button1, int button2 );
+        static int messageBox2( int type, TQWidget* parent, const TQString& caption,
+            const TQString& text, const TQString& button0Text, const TQString& button1Text,
+            const TQString& button2Text, int defaultButton, int escapeButton );
+        static int information( TQWidget* parent, const TQString& caption, const TQString& text,
+            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+            int defaultButton, int escapeButton );
+        static int question( TQWidget* parent, const TQString& caption, const TQString& text,
+            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+            int defaultButton, int escapeButton );
+        static int warning( TQWidget* parent, const TQString& caption, const TQString& text,
+            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+            int defaultButton, int escapeButton );
+        static int critical( TQWidget* parent, const TQString& caption, const TQString& text,
+            const TQString& button0Text, const TQString& button1Text, const TQString& button2Text,
+            int defaultButton, int escapeButton );
+// ---
+    private:
+        static void initLibrary();
+        static bool inited;
+        static bool enable;
+    };
+
+#endif
-- 
cgit v1.2.3

