blob: 789877d9a37b6140f3e02a6773d345c147d589ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/bin/bash
find ./ -type f -iname "*" -exec sed -i 's/TQT_VERSION/\[\[\[TQT_VERSION IS DEPRECATED\]\]\]/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/CONSETQUENTIAL/CONSEQUENTIAL/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqfind\./find\./g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqdevice\./device\./g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqfind\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find\1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqreplace\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace\1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqcontains\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains\1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqfind \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/find \1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqreplace \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/replace \1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqcontains \([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/contains \1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqstatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/status\1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqStatus\([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_]\)/Status\1/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/findRev/tqfindRev/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/findRef/tqfindRef/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/qMakePair/tqMakePair/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/\.arg(/\.tqarg(/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/::clipboard()/::tqclipboard()/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/tqStatusBar/StatusBar/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/sockettqStatus/socketStatus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/ranstqparent/ransparent/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/painttqdevice/paintdevice/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/staticTQString/staticQString/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/exittqStatus/exitStatus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/utqmask/umask/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQGpgME/QGpgME/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/xTQGantt/xQGantt/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQSync/QSync/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQtDebugMsg/QtDebugMsg/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQtWarningMsg/QtWarningMsg/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQtFatalMsg/QtFatalMsg/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQCStringList/QCStringList/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQLayoutStruct/QLayoutStruct/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQ_CHECK_PTR/Q_CHECK_PTR/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQUEST/QUEST/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQUENCE/QUENCE/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQPARTICI/QPARTICI/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/OPATQUE/OPAQUE/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TQ_ENUMS/Q_ENUMS/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/TTQ/TQ/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/#include \"\(.*\)\.tqmoc\"/#include \"\1\.moc\"/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/#include <\(.*\)\.tqmoc>/#include <\1\.moc>/g' {} \;
find ./ -type f -iname "*" -exec perl -i -p -e 's/TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \;
find ./ -type f -iname "*" -exec perl -i -p -e 's/Q_OBJECT\nQ_OBJECT\n TQ_OBJECT\n/Q_OBJECT\n TQ_OBJECT\n/' {} \;
# NOTE
# These should be rerun after manual Qt4 porting completion
find ./ -type f -iname "*" -exec sed -i 's/Qt::StrongFocus/TQ_StrongFocus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/Qt::NoFocus/TQ_NoFocus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/Qt::WheelFocus/TQ_WheelFocus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/Qt::ClickFocus/TQ_ClickFocus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/Qt::TabFocus/TQ_TabFocus/g' {} \;
find ./ -type f -iname "*" -exec sed -i 's/Qt::FocusPolicy/TQ_FocusPolicy/g' {} \;
|