summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtinterface/CMakeLists.txt2
-rw-r--r--qtinterface/TODO4
-rwxr-xr-xqtinterface/interface_tqt3/tmoc.cmake23
-rwxr-xr-xqtinterface/tqt-replace34
-rwxr-xr-xqtinterface/tqt-replace-stream32
-rwxr-xr-xqtinterface/tqt-replace-stream-tqt3.cmake8
-rwxr-xr-xqtinterface/tqt-replace-stream.cmake32
-rwxr-xr-xqtinterface/tqt-replace-tqt3.cmake2
-rwxr-xr-xqtinterface/tqt-replace.cmake34
-rw-r--r--qtinterface/tqt.h.cmake3
10 files changed, 11 insertions, 163 deletions
diff --git a/qtinterface/CMakeLists.txt b/qtinterface/CMakeLists.txt
index 7883b08..0e67c5a 100644
--- a/qtinterface/CMakeLists.txt
+++ b/qtinterface/CMakeLists.txt
@@ -102,7 +102,6 @@ install( FILES
configure_file( ${IFACE}/tmoc.cmake tmoc @ONLY )
configure_file( uic-tqt.cmake uic-tqt @ONLY )
configure_file( tqt-replace-tqt3.cmake tqt-replace @ONLY )
-configure_file( tqt-replace-stream-tqt3.cmake tqt-replace-stream @ONLY )
install( PROGRAMS
moc-tqt ${CMAKE_CURRENT_BINARY_DIR}/uic-tqt
@@ -110,7 +109,6 @@ install( PROGRAMS
dcopidl2cpp-tqt convert_qt_tqt1 convert_qt_tqt2
convert_qt_tqt3 ${CMAKE_CURRENT_BINARY_DIR}/tmoc
${CMAKE_CURRENT_BINARY_DIR}/tqt-replace
- ${CMAKE_CURRENT_BINARY_DIR}/tqt-replace-stream
DESTINATION ${BIN_INSTALL_DIR} )
diff --git a/qtinterface/TODO b/qtinterface/TODO
index 3d611a2..5871814 100644
--- a/qtinterface/TODO
+++ b/qtinterface/TODO
@@ -3,7 +3,7 @@ qaccessible
-All headers that contain the keywork Q_OBJECT have been ported,
+All headers that contain the keywork TQ_OBJECT have been ported,
exept for these due to *@#$ private functions
qclipboard
@@ -19,7 +19,7 @@ qwidgetplugin (TQWidgetContainerPlugin, weird compilation failure)
-And these that do not contain Q_OBJECT are failing:
+And these that do not contain TQ_OBJECT are failing:
qasciicache
qasciidict
diff --git a/qtinterface/interface_tqt3/tmoc.cmake b/qtinterface/interface_tqt3/tmoc.cmake
index dda16b4..62334ad 100755
--- a/qtinterface/interface_tqt3/tmoc.cmake
+++ b/qtinterface/interface_tqt3/tmoc.cmake
@@ -4,21 +4,16 @@
# Very simple moc wrapper, for using with cmake
#
-if [ -f @BIN_INSTALL_DIR@/tqt-replace-stream ]; then
- if [ -z "$1" ]; then
- echo "Usage: tmoc <input_file> -o <out_file>"
- else
- input_file="$1"
- out_file="$3"
- @BIN_INSTALL_DIR@/tqt-replace-stream "${input_file}" | \
- @MOC_EXECUTABLE@ | \
- sed "/#include <ntqmetaobject.h>/ i\\
+if [ -z "$1" ]; then
+ echo "Usage: tmoc <input_file> -o <out_file>"
+else
+ input_file="$1"
+ out_file="$3"
+ cat "${input_file}" | \
+ @MOC_EXECUTABLE@ | \
+ sed "/#include <ntqmetaobject.h>/ i\\
#undef TQT_NO_COMPAT\\
#include \"${input_file}\"\\
" \
- > "${out_file}"
- fi
-else
- echo "ERROR: @BIN_INSTALL_DIR@/tqt-replace-stream is not available. tmoc will fail!"
- exit 1;
+ > "${out_file}"
fi
diff --git a/qtinterface/tqt-replace b/qtinterface/tqt-replace
deleted file mode 100755
index 45e1cff..0000000
--- a/qtinterface/tqt-replace
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-QT_VER=X
-
-if [[ "$1" == "" ]]; then
- echo "Usage: tqt-replace <input_file>"
-else
- sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"
- sed -i 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' "$1"
- sed -i 's/TQT\([^_]\)/QT\1/g' "$1"
- sed -i 's/Q_SLOTS>/slots>/g' "$1"
- sed -i 's/Q_SIGNALS>/signals>/g' "$1"
- sed -i 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' "$1"
- sed -i 's/tqApp/qApp/g' "$1"
- sed -i 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' "$1"
- sed -i 's/TQ_PROPERTY/Q_PROPERTY/g' "$1"
- sed -i 's/TQ_ENUMS/Q_ENUMS/g' "$1"
- sed -i 's/TQ_SETS/Q_SETS/g' "$1"
- sed -i 's/TQ_OVERRIDE/Q_OVERRIDE/g' "$1"
- sed -i 's/TQ_CLASSINFO/Q_CLASSINFO/g' "$1"
- sed -i 's/Qt::Orientation/Orientation/g' "$1"
- sed -i 's/TQ_INT8/Q_INT8/g' "$1"
- sed -i 's/TQ_INT16/Q_INT16/g' "$1"
- sed -i 's/TQ_INT32/Q_INT32/g' "$1"
- sed -i 's/TQ_INT64/Q_INT64/g' "$1"
- sed -i 's/TQ_UINT8/Q_UINT8/g' "$1"
- sed -i 's/TQ_UINT16/Q_UINT16/g' "$1"
- sed -i 's/TQ_UINT32/Q_UINT32/g' "$1"
- sed -i 's/TQ_UINT64/Q_UINT64/g' "$1"
- sed -i 's/TQ_LONG/Q_LONG/g' "$1"
- sed -i 's/TQ_LLONG/Q_LLONG/g' "$1"
- sed -i 's/TQ_ULONG/Q_ULONG/g' "$1"
- sed -i 's/TQ_ULLONG/Q_ULLONG/g' "$1"
- exit 0
-fi
diff --git a/qtinterface/tqt-replace-stream b/qtinterface/tqt-replace-stream
deleted file mode 100755
index ccf1ab0..0000000
--- a/qtinterface/tqt-replace-stream
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-QT_VER=X
-
-if [[ "$1" == "" ]]; then
- echo "Usage: tqt-replace-stream <filename>"
-else
- cat "$1" | \
- sed 's/^TQ\([^T_]\)/Q\1/g' | \
- sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
- sed 's/TQT\([^_]\)/QT\1/g' | \
- sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' | \
- sed 's/tqApp/qApp/g' | \
- sed 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' | \
- sed 's/TQ_PROPERTY/Q_PROPERTY/g' | \
- sed 's/TQ_ENUMS/Q_ENUMS/g' | \
- sed 's/TQ_SETS/Q_SETS/g' | \
- sed 's/TQ_OVERRIDE/Q_OVERRIDE/g' | \
- sed 's/TQ_CLASSINFO/Q_CLASSINFO/g' | \
- sed 's/Qt::Orientation/Orientation/g' | \
- sed 's/TQ_INT8/Q_INT8/g' | \
- sed 's/TQ_INT16/Q_INT16/g' | \
- sed 's/TQ_INT32/Q_INT32/g' | \
- sed 's/TQ_INT64/Q_INT64/g' | \
- sed 's/TQ_UINT8/Q_UINT8/g' | \
- sed 's/TQ_UINT16/Q_UINT16/g' | \
- sed 's/TQ_UINT32/Q_UINT32/g' | \
- sed 's/TQ_UINT64/Q_UINT64/g' | \
- sed 's/TQ_LONG/Q_LONG/g' | \
- sed 's/TQ_LLONG/Q_LLONG/g' | \
- sed 's/TQ_ULONG/Q_ULONG/g' | \
- sed 's/TQ_ULLONG/Q_ULLONG/g'
-fi
diff --git a/qtinterface/tqt-replace-stream-tqt3.cmake b/qtinterface/tqt-replace-stream-tqt3.cmake
deleted file mode 100755
index 14f7308..0000000
--- a/qtinterface/tqt-replace-stream-tqt3.cmake
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-QT_VERSION=@QT_VERSION@
-
-if [[ "$1" == "" ]]; then
- echo "Usage: tqt-replace-stream <filename>"
-else
- cat "$1" | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
-fi
diff --git a/qtinterface/tqt-replace-stream.cmake b/qtinterface/tqt-replace-stream.cmake
deleted file mode 100755
index fcaeced..0000000
--- a/qtinterface/tqt-replace-stream.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-QT_VERSION=@QT_VERSION@
-
-if [[ "$1" == "" ]]; then
- echo "Usage: tqt-replace-stream <filename>"
-else
- cat "$1" | \
- sed 's/^TQ\([^T_]\)/Q\1/g' | \
- sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
- sed 's/TQT\([^_]\)/QT\1/g' | \
- sed 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' | \
- sed 's/tqApp/qApp/g' | \
- sed 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' | \
- sed 's/TQ_PROPERTY/Q_PROPERTY/g' | \
- sed 's/TQ_ENUMS/Q_ENUMS/g' | \
- sed 's/TQ_SETS/Q_SETS/g' | \
- sed 's/TQ_OVERRIDE/Q_OVERRIDE/g' | \
- sed 's/TQ_CLASSINFO/Q_CLASSINFO/g' | \
- sed 's/Qt::Orientation/Orientation/g' | \
- sed 's/TQ_INT8/Q_INT8/g' | \
- sed 's/TQ_INT16/Q_INT16/g' | \
- sed 's/TQ_INT32/Q_INT32/g' | \
- sed 's/TQ_INT64/Q_INT64/g' | \
- sed 's/TQ_UINT8/Q_UINT8/g' | \
- sed 's/TQ_UINT16/Q_UINT16/g' | \
- sed 's/TQ_UINT32/Q_UINT32/g' | \
- sed 's/TQ_UINT64/Q_UINT64/g' | \
- sed 's/TQ_LONG/Q_LONG/g' | \
- sed 's/TQ_LLONG/Q_LLONG/g' | \
- sed 's/TQ_ULONG/Q_ULONG/g' | \
- sed 's/TQ_ULLONG/Q_ULLONG/g'
-fi
diff --git a/qtinterface/tqt-replace-tqt3.cmake b/qtinterface/tqt-replace-tqt3.cmake
index 413dee5..8d69a5f 100755
--- a/qtinterface/tqt-replace-tqt3.cmake
+++ b/qtinterface/tqt-replace-tqt3.cmake
@@ -6,7 +6,5 @@ if [[ "$1" == "" ]]; then
else
sed -i 's/Q_SLOTS>/slots>/g' "$1"
sed -i 's/Q_SIGNALS>/signals>/g' "$1"
- sed -i 's/^Q_OBJECT/TQ_OBJECT/g' "$1"
- sed -i 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g' "$1"
exit 0
fi
diff --git a/qtinterface/tqt-replace.cmake b/qtinterface/tqt-replace.cmake
deleted file mode 100755
index 15b4b6f..0000000
--- a/qtinterface/tqt-replace.cmake
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-QT_VERSION=@QT_VERSION@
-
-if [[ "$1" == "" ]]; then
- echo "Usage: tqt-replace <input_file>"
-else
- sed -i 's/^TQ\([^T_]\)/Q\1/g' "$1"
- sed -i 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' "$1"
- sed -i 's/TQT\([^_]\)/QT\1/g' "$1"
- sed -i 's/Q_SLOTS>/slots>/g' "$1"
- sed -i 's/Q_SIGNALS>/signals>/g' "$1"
- sed -i 's/Q\([^ _]*\)_OBJECT_NAME_STRING/TQ\1_OBJECT_NAME_STRING/g' "$1"
- sed -i 's/tqApp/qApp/g' "$1"
- sed -i 's/\([ \t]\)tq\([^:(_)\t ]\)/\1\2/g' "$1"
- sed -i 's/TQ_PROPERTY/Q_PROPERTY/g' "$1"
- sed -i 's/TQ_ENUMS/Q_ENUMS/g' "$1"
- sed -i 's/TQ_SETS/Q_SETS/g' "$1"
- sed -i 's/TQ_OVERRIDE/Q_OVERRIDE/g' "$1"
- sed -i 's/TQ_CLASSINFO/Q_CLASSINFO/g' "$1"
- sed -i 's/Qt::Orientation/Orientation/g' "$1"
- sed -i 's/TQ_INT8/Q_INT8/g' "$1"
- sed -i 's/TQ_INT16/Q_INT16/g' "$1"
- sed -i 's/TQ_INT32/Q_INT32/g' "$1"
- sed -i 's/TQ_INT64/Q_INT64/g' "$1"
- sed -i 's/TQ_UINT8/Q_UINT8/g' "$1"
- sed -i 's/TQ_UINT16/Q_UINT16/g' "$1"
- sed -i 's/TQ_UINT32/Q_UINT32/g' "$1"
- sed -i 's/TQ_UINT64/Q_UINT64/g' "$1"
- sed -i 's/TQ_LONG/Q_LONG/g' "$1"
- sed -i 's/TQ_LLONG/Q_LLONG/g' "$1"
- sed -i 's/TQ_ULONG/Q_ULONG/g' "$1"
- sed -i 's/TQ_ULLONG/Q_ULLONG/g' "$1"
- exit 0
-fi
diff --git a/qtinterface/tqt.h.cmake b/qtinterface/tqt.h.cmake
index bda5ea0..e391ce8 100644
--- a/qtinterface/tqt.h.cmake
+++ b/qtinterface/tqt.h.cmake
@@ -54,9 +54,6 @@ Boston, MA 02110-1301, USA.
#endif /* Q_WS_X11 */
#define Qt TQt
-#ifndef TQT_NO_COMPAT_NAMES
-#define Q_OBJECT TQ_OBJECT
-#endif /* TQT_NO_COMPAT_NAMES */
#define TQ_INLINE_TEMPLATES Q_INLINE_TEMPLATES
#define TQ_DUMMY_COMPARISON_OPERATOR Q_DUMMY_COMPARISON_OPERATOR