summaryrefslogtreecommitdiffstats
path: root/tqtinterface/conversion_scripts/convert_qt_itself5
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/conversion_scripts/convert_qt_itself5')
-rwxr-xr-xtqtinterface/conversion_scripts/convert_qt_itself555
1 files changed, 55 insertions, 0 deletions
diff --git a/tqtinterface/conversion_scripts/convert_qt_itself5 b/tqtinterface/conversion_scripts/convert_qt_itself5
new file mode 100755
index 0000000..db4f735
--- /dev/null
+++ b/tqtinterface/conversion_scripts/convert_qt_itself5
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+#find ./ -type f -iname "*" -exec sed -i 's/TQt::HorizontalLayout/HorizontalLayout/g' {} \;
+#find ./ -type f -iname "*" -exec sed -i 's/TQt::VerticalLayout/VerticalLayout/g' {} \;
+#find ./ -type f -iname "*" -exec sed -i 's/TQt::GridLayout/GridLayout/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Orientation/Qt::Orientation/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/setQt::Orientation/setOrientation/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQString::null/TQString()/g' {} \;
+#find ./ -type f -iname "*" -exec sed -i 's/Dock/TQt::Dock/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::Qt::/Qt::/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/Qt::Qt::/Qt::/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/tqtqlayout\.h/tqlayout\.h/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/_tqparent/_parent/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/_tqlayout/_layout/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/[ ,(]Horizontal/Qt::Horizontal/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/[ ,(]Vertical/Qt::Vertical/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::Horizontal/Qt::Horizontal/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::Vertical/Qt::Vertical/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/TQt::LeftButton/Qt::LeftButton/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::RightButton/Qt::RightButton/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::MidButton/Qt::MidButton/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::NoButton/Qt::NoButton/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/TQt::ISODate/Qt::ISODate/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::TextDate/Qt::TextDate/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQt::LocalDate/Qt::LocalDate/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/TQ_OS_/Q_OS_/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQ_BYTE_ORDER/Q_BYTE_ORDER/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQ_BIG_ENDIAN/Q_BIG_ENDIAN/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQtWIN/QtWIN/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/TQUANT/QUANT/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/FRETQ/FREQ/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/_SETQ_/_SEQ_/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/rtqfind/rfind/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/_ETQUAL/_EQUAL/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/ComplexETQ/ComplexEQ/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/STQRT/SQRT/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/STQUARE/SQUARE/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/ktqlayout/klayout/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqttableview/qttableview/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/tqiomanager/qiomanager/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/TStringToTQString/TStringToQString/g' {} \;
+find ./ -type f -iname "*" -exec sed -i 's/TQStringToTString/QStringToTString/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/::qt_cast/::tqqt_cast/g' {} \;
+
+find ./ -type f -iname "*" -exec sed -i 's/\"tqgeometry\"/\"geometry\"/g' {} \;