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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
|
commit 01f5ea83754cabfe6ebbcea0601cebaec976f708
Author: Timothy Pearson <[email protected]>
Date: 1324253563 -0600
Rename old tq methods that no longer need a unique name
diff --git a/konversation/src/alias_preferencesui.ui b/konversation/src/alias_preferencesui.ui
index eb53d83..3783955 100644
--- a/konversation/src/alias_preferencesui.ui
+++ b/konversation/src/alias_preferencesui.ui
@@ -146,7 +146,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>350</height>
diff --git a/konversation/src/autoreplace_preferencesui.ui b/konversation/src/autoreplace_preferencesui.ui
index f617836..769ba9b 100644
--- a/konversation/src/autoreplace_preferencesui.ui
+++ b/konversation/src/autoreplace_preferencesui.ui
@@ -54,7 +54,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>506</height>
diff --git a/konversation/src/channel.cpp b/konversation/src/channel.cpp
index 21a507d..13e026e 100644
--- a/konversation/src/channel.cpp
+++ b/konversation/src/channel.cpp
@@ -139,7 +139,7 @@ Channel::Channel(TQWidget* parent, TQString _name) : ChatWindow(parent)
// The box holding the channel modes
modeBox = new TQHBox(topicWidget);
- modeBox->tqsetSizePolicy(hfixed);
+ modeBox->setSizePolicy(hfixed);
modeT = new ModeButton("T",modeBox,0);
modeN = new ModeButton("N",modeBox,1);
modeS = new ModeButton("S",modeBox,2);
@@ -240,33 +240,33 @@ Channel::Channel(TQWidget* parent, TQString _name) : ChatWindow(parent)
channelInput->installEventFilter(this);
// Set the widgets size policies
- m_topicButton->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
- topicLine->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum));
+ m_topicButton->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
+ topicLine->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum));
- commandLineBox->tqsetSizePolicy(vfixed);
+ commandLineBox->setSizePolicy(vfixed);
limit->setMaximumSize(40,100);
- limit->tqsetSizePolicy(hfixed);
+ limit->setSizePolicy(hfixed);
modeT->setMaximumSize(20,100);
- modeT->tqsetSizePolicy(hfixed);
+ modeT->setSizePolicy(hfixed);
modeN->setMaximumSize(20,100);
- modeN->tqsetSizePolicy(hfixed);
+ modeN->setSizePolicy(hfixed);
modeS->setMaximumSize(20,100);
- modeS->tqsetSizePolicy(hfixed);
+ modeS->setSizePolicy(hfixed);
modeI->setMaximumSize(20,100);
- modeI->tqsetSizePolicy(hfixed);
+ modeI->setSizePolicy(hfixed);
modeP->setMaximumSize(20,100);
- modeP->tqsetSizePolicy(hfixed);
+ modeP->setSizePolicy(hfixed);
modeM->setMaximumSize(20,100);
- modeM->tqsetSizePolicy(hfixed);
+ modeM->setSizePolicy(hfixed);
modeK->setMaximumSize(20,100);
- modeK->tqsetSizePolicy(hfixed);
+ modeK->setSizePolicy(hfixed);
modeL->setMaximumSize(20,100);
- modeL->tqsetSizePolicy(hfixed);
+ modeL->setSizePolicy(hfixed);
- getTextView()->tqsetSizePolicy(greedy);
- nicknameListView->tqsetSizePolicy(hmodest);
+ getTextView()->setSizePolicy(greedy);
+ nicknameListView->setSizePolicy(hmodest);
connect(channelInput,TQT_SIGNAL (submit()),this,TQT_SLOT (channelTextEntered()) );
connect(channelInput,TQT_SIGNAL (envelopeCommand()),this,TQT_SLOT (channelPassthroughCommand()) );
@@ -568,7 +568,7 @@ void Channel::popupCommand(int id)
break;
case Konversation::Ping:
{
- unsigned int time_t = TQDateTime::tqcurrentDateTime().toTime_t();
+ unsigned int time_t = TQDateTime::currentDateTime().toTime_t();
pattern=TQString(cc+"CTCP %u PING %1").tqarg(time_t);
}
break;
@@ -796,7 +796,7 @@ void Channel::completeNick()
{
nick = it.current();
- if(nick->getChannelNick()->getNickname().tqstartsWith(pattern, Preferences::nickCompletionCaseSensitive()) &&
+ if(nick->getChannelNick()->getNickname().startsWith(pattern, Preferences::nickCompletionCaseSensitive()) &&
(nick->getChannelNick()->timeStamp() > timeStamp))
{
timeStamp = nick->getChannelNick()->timeStamp();
@@ -822,7 +822,7 @@ void Channel::completeNick()
lookNick = lookNick.section( prefixCharacter,1 );
}
- if(lookNick.tqstartsWith(pattern, Preferences::nickCompletionCaseSensitive()))
+ if(lookNick.startsWith(pattern, Preferences::nickCompletionCaseSensitive()))
{
foundNick = lookNick;
}
@@ -1521,7 +1521,7 @@ void Channel::setTopic(const TQString &newTopic)
if(m_topicHistory.first().section(' ', 2) != newTopic)
{
- m_topicHistory.prepend(TQString("%1 "+i18n("unknown")+" %2").tqarg(TQDateTime::tqcurrentDateTime().toTime_t()).tqarg(newTopic));
+ m_topicHistory.prepend(TQString("%1 "+i18n("unknown")+" %2").tqarg(TQDateTime::currentDateTime().toTime_t()).tqarg(newTopic));
emit topicHistoryChanged();
}
}
@@ -1537,7 +1537,7 @@ void Channel::setTopic(const TQString &nickname, const TQString &newTopic) // Ov
appendCommandMessage(i18n("Topic"), i18n("%1 sets the channel topic to \"%2\".").tqarg(nickname).tqarg(newTopic));
}
- m_topicHistory.prepend(TQString("%1 %2 %3").tqarg(TQDateTime::tqcurrentDateTime().toTime_t()).tqarg(nickname).tqarg(newTopic));
+ m_topicHistory.prepend(TQString("%1 %2 %3").tqarg(TQDateTime::currentDateTime().toTime_t()).tqarg(nickname).tqarg(newTopic));
TQString topic = Konversation::removeIrcMarkup(newTopic);
topicLine->setText(topic);
@@ -1557,7 +1557,7 @@ TQString Channel::getTopic()
void Channel::setTopicAuthor(const TQString& newAuthor, TQDateTime time)
{
if (time.isNull() || !time.isValid())
- time=TQDateTime::tqcurrentDateTime();
+ time=TQDateTime::currentDateTime();
if(topicAuthorUnknown)
{
@@ -2253,8 +2253,8 @@ void Channel::updateAppearance()
}
else
{
- fg=tqcolorGroup().foreground();
- bg=tqcolorGroup().base();
+ fg=colorGroup().foreground();
+ bg=colorGroup().base();
abg=KGlobalSettings::alternateBackgroundColor();
}
@@ -2797,7 +2797,7 @@ void Channel::append(const TQString& nickname, const TQString& message)
Nick* nick = getNickByName(nickname);
if(nick) {
- nick->getChannelNick()->setTimeStamp(TQDateTime::tqcurrentDateTime().toTime_t());
+ nick->getChannelNick()->setTimeStamp(TQDateTime::currentDateTime().toTime_t());
}
}
@@ -2811,7 +2811,7 @@ void Channel::appendAction(const TQString& nickname, const TQString& message)
Nick* nick = getNickByName(nickname);
if(nick) {
- nick->getChannelNick()->setTimeStamp(TQDateTime::tqcurrentDateTime().toTime_t());
+ nick->getChannelNick()->setTimeStamp(TQDateTime::currentDateTime().toTime_t());
}
}
diff --git a/konversation/src/channellistpanel.cpp b/konversation/src/channellistpanel.cpp
index 364c34c..79a9168 100644
--- a/konversation/src/channellistpanel.cpp
+++ b/konversation/src/channellistpanel.cpp
@@ -223,7 +223,7 @@ void ChannelListPanel::saveList()
TQString header(i18n("Konversation Channel List: %1 - %2\n\n")
.tqarg(m_server->getServerName())
- .tqarg(TQDateTime::tqcurrentDateTime().toString()));
+ .tqarg(TQDateTime::currentDateTime().toString()));
// send header to stream
stream << header;
diff --git a/konversation/src/channeloptionsui.ui b/konversation/src/channeloptionsui.ui
index bfdaea8..33bb6ff 100644
--- a/konversation/src/channeloptionsui.ui
+++ b/konversation/src/channeloptionsui.ui
@@ -267,7 +267,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>211</width>
<height>20</height>
@@ -319,7 +319,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>301</width>
<height>31</height>
@@ -383,7 +383,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
diff --git a/konversation/src/chatwindow.cpp b/konversation/src/chatwindow.cpp
index f7eb651..9e37d92 100644
--- a/konversation/src/chatwindow.cpp
+++ b/konversation/src/chatwindow.cpp
@@ -219,7 +219,7 @@ void ChatWindow::setLogfileName(const TQString& name)
if(firstLog)
{
// status panels get special treatment here, since they have no server at the beginning
- if (getType() == tqStatus || getType() == DccChat)
+ if (getType() == Status || getType() == DccChat)
{
logName = name + ".log";
}
@@ -236,7 +236,7 @@ void ChatWindow::setLogfileName(const TQString& name)
cdIntoLogPath();
// Show last log lines. This idea was stole ... um ... inspired by PMP :)
// Don't do this for the server status windows, though
- if((getType() != tqStatus) && logfile.open(IO_ReadOnly))
+ if((getType() != Status) && logfile.open(IO_ReadOnly))
{
unsigned long filePosition;
@@ -343,13 +343,13 @@ void ChatWindow::logText(const TQString& text)
if(firstLog)
{
- TQString intro(i18n("\n*** Logfile started\n*** on %1\n\n").tqarg(TQDateTime::tqcurrentDateTime().toString()));
+ TQString intro(i18n("\n*** Logfile started\n*** on %1\n\n").tqarg(TQDateTime::currentDateTime().toString()));
logStream << intro;
firstLog=false;
}
TQTime time=TQTime::currentTime();
- TQString logLine(TQString("[%1] [%2] %3\n").tqarg(TQDate::tqcurrentDate(Qt::LocalTime).toString()).
+ TQString logLine(TQString("[%1] [%2] %3\n").tqarg(TQDate::currentDate(Qt::LocalTime).toString()).
tqarg(time.toString("hh:mm:ss")).tqarg(text));
logStream << logLine;
diff --git a/konversation/src/chatwindow.h b/konversation/src/chatwindow.h
index 947c789..d77f5d1 100644
--- a/konversation/src/chatwindow.h
+++ b/konversation/src/chatwindow.h
@@ -35,7 +35,7 @@ class ChatWindow : public TQVBox
enum WindowType
{
- tqStatus=0,
+ Status=0,
Channel,
Query,
DccChat,
diff --git a/konversation/src/chatwindowappearance_preferences.ui b/konversation/src/chatwindowappearance_preferences.ui
index a332268..c1c152c 100644
--- a/konversation/src/chatwindowappearance_preferences.ui
+++ b/konversation/src/chatwindowappearance_preferences.ui
@@ -74,7 +74,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>191</width>
<height>20</height>
@@ -129,7 +129,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>251</width>
<height>20</height>
@@ -205,7 +205,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -233,7 +233,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -269,7 +269,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -320,7 +320,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/konversation/src/chatwindowbehaviour_preferences.ui b/konversation/src/chatwindowbehaviour_preferences.ui
index 0e5c779..5968850 100644
--- a/konversation/src/chatwindowbehaviour_preferences.ui
+++ b/konversation/src/chatwindowbehaviour_preferences.ui
@@ -92,7 +92,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>410</width>
<height>20</height>
@@ -137,7 +137,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>230</width>
<height>20</height>
@@ -200,7 +200,7 @@
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>20</height>
@@ -236,7 +236,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>170</width>
<height>20</height>
@@ -253,7 +253,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>190</width>
<height>20</height>
@@ -331,7 +331,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>41</width>
<height>20</height>
diff --git a/konversation/src/colorsappearance_preferences.ui b/konversation/src/colorsappearance_preferences.ui
index 54f68ac..909e5b3 100644
--- a/konversation/src/colorsappearance_preferences.ui
+++ b/konversation/src/colorsappearance_preferences.ui
@@ -141,7 +141,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -158,7 +158,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -175,7 +175,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -192,7 +192,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -209,7 +209,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -226,7 +226,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -243,7 +243,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -260,7 +260,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -277,7 +277,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -294,7 +294,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -536,7 +536,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -553,7 +553,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -570,7 +570,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -587,7 +587,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -652,7 +652,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -669,7 +669,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>40</width>
<height>20</height>
@@ -761,7 +761,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>271</width>
<height>20</height>
@@ -962,7 +962,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -979,7 +979,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -996,7 +996,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1013,7 +1013,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1030,7 +1030,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1047,7 +1047,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1064,7 +1064,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1081,7 +1081,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1162,7 +1162,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1179,7 +1179,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1196,7 +1196,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1213,7 +1213,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -1296,7 +1296,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>0</height>
diff --git a/konversation/src/common.cpp b/konversation/src/common.cpp
index 7e1d301..eba7508 100644
--- a/konversation/src/common.cpp
+++ b/konversation/src/common.cpp
@@ -144,7 +144,7 @@ namespace Konversation
continue;
}
- if (urlPattern.cap(1).tqstartsWith("www.", false))
+ if (urlPattern.cap(1).startsWith("www.", false))
protocol = "http://";
else if (urlPattern.cap(1).isEmpty())
protocol = "mailto:";
diff --git a/konversation/src/connectionbehavior_preferences.ui b/konversation/src/connectionbehavior_preferences.ui
index 8c2f2a1..752c26c 100644
--- a/konversation/src/connectionbehavior_preferences.ui
+++ b/konversation/src/connectionbehavior_preferences.ui
@@ -60,7 +60,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>278</width>
<height>20</height>
@@ -119,7 +119,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>280</width>
<height>20</height>
@@ -138,7 +138,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>21</width>
<height>60</height>
diff --git a/konversation/src/dcc_preferencesui.ui b/konversation/src/dcc_preferencesui.ui
index 9ae128a..ccff213 100644
--- a/konversation/src/dcc_preferencesui.ui
+++ b/konversation/src/dcc_preferencesui.ui
@@ -114,7 +114,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -214,7 +214,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Maximum</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
@@ -231,7 +231,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
@@ -248,7 +248,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>70</width>
<height>20</height>
@@ -329,7 +329,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
@@ -396,7 +396,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
diff --git a/konversation/src/dccchat.cpp b/konversation/src/dccchat.cpp
index 58002f9..f40d1ae 100644
--- a/konversation/src/dccchat.cpp
+++ b/konversation/src/dccchat.cpp
@@ -418,7 +418,7 @@ void DccChat::showEvent(TQShowEvent* /* event */)
if(m_initialShow) {
m_initialShow = false;
TQValueList<int> sizes;
- sizes << m_sourceLine->tqsizeHint().height() << (height() - m_sourceLine->tqsizeHint().height());
+ sizes << m_sourceLine->sizeHint().height() << (height() - m_sourceLine->sizeHint().height());
m_headerSplitter->setSizes(sizes);
}
}
@@ -435,8 +435,8 @@ void DccChat::updateAppearance()
}
else
{
- fg=tqcolorGroup().foreground();
- bg=tqcolorGroup().base();
+ fg=colorGroup().foreground();
+ bg=colorGroup().base();
}
m_dccChatInput->unsetPalette();
diff --git a/konversation/src/dccresumedialog.cpp b/konversation/src/dccresumedialog.cpp
index d2d3c7e..30b687b 100644
--- a/konversation/src/dccresumedialog.cpp
+++ b/konversation/src/dccresumedialog.cpp
@@ -97,7 +97,7 @@ DccResumeDialog::DccResumeDialog(DccTransferRecv* item, const TQString& caption,
}
updateDialogButtons();
- setInitialSize(TQSize(500, tqsizeHint().height()));
+ setInitialSize(TQSize(500, sizeHint().height()));
}
diff --git a/konversation/src/dcctransfer.cpp b/konversation/src/dcctransfer.cpp
index cec058c..c12147f 100644
--- a/konversation/src/dcctransfer.cpp
+++ b/konversation/src/dcctransfer.cpp
@@ -43,7 +43,7 @@ DccTransfer::DccTransfer( DccType dccType, TQObject* parent ) : TQObject(parent)
connect( &m_loggerTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( logTransfer() ) );
- m_timeOffer = TQDateTime::tqcurrentDateTime();
+ m_timeOffer = TQDateTime::currentDateTime();
}
DccTransfer::~DccTransfer()
@@ -60,7 +60,7 @@ DccTransfer::DccTransfer( const DccTransfer& obj )
m_bufferSize = 0;
m_averageSpeed = obj.getAverageSpeed();
m_currentSpeed = obj.getCurrentSpeed();
- m_status = obj.gettqStatus();
+ m_status = obj.getStatus();
m_statusDetail = obj.getStatusDetail();
m_type = obj.getType();
m_fileName = obj.getFileName();
@@ -88,20 +88,20 @@ DccTransfer::DccTransfer( const DccTransfer& obj )
void DccTransfer::setConnectionId( int id )
{
- if ( gettqStatus() == Configuring || gettqStatus() == Queued )
+ if ( getStatus() == Configuring || getStatus() == Queued )
m_connectionId = id;
}
void DccTransfer::setPartnerNick( const TQString& nick )
{
- if ( gettqStatus() == Configuring || gettqStatus() == Queued )
+ if ( getStatus() == Configuring || getStatus() == Queued )
m_partnerNick = nick;
}
bool DccTransfer::queue()
{
kdDebug() << "DccTransfer::queue()" << endl;
- if ( gettqStatus() != Configuring )
+ if ( getStatus() != Configuring )
return false;
if ( m_fileName.isEmpty() )
@@ -110,13 +110,13 @@ bool DccTransfer::queue()
if ( m_connectionId == -1 || m_partnerNick.isEmpty() )
return false;
- settqStatus( Queued );
+ setStatus( Queued );
return true;
}
void DccTransfer::startTransferLogger()
{
- m_timeTransferStarted = TQDateTime::tqcurrentDateTime();
+ m_timeTransferStarted = TQDateTime::currentDateTime();
m_loggerBaseTime.start();
m_loggerTimer.start( 100 );
}
@@ -124,7 +124,7 @@ void DccTransfer::startTransferLogger()
void DccTransfer::finishTransferLogger()
{
if ( m_timeTransferFinished.isNull() )
- m_timeTransferFinished = TQDateTime::tqcurrentDateTime();
+ m_timeTransferFinished = TQDateTime::currentDateTime();
m_loggerTimer.stop();
updateTransferMeters();
}
@@ -137,21 +137,21 @@ void DccTransfer::logTransfer()
updateTransferMeters();
}
-void DccTransfer::settqStatus( DcctqStatus status, const TQString& statusDetail )
+void DccTransfer::setStatus( DccStatus status, const TQString& statusDetail )
{
bool changed = ( status != m_status );
- DcctqStatus oldtqStatus = m_status;
+ DccStatus oldStatus = m_status;
m_status = status;
m_statusDetail = statusDetail;
if ( changed )
- emit statusChanged( this, m_status, oldtqStatus );
+ emit statusChanged( this, m_status, oldStatus );
}
void DccTransfer::updateTransferMeters()
{
const int timeToCalc = 5;
- if ( gettqStatus() == Transferring )
+ if ( getStatus() == Transferring )
{
// update CurrentSpeed
@@ -174,7 +174,7 @@ void DccTransfer::updateTransferMeters()
if ( m_transferLogTime.count() >= 2 )
{
// FIXME: precision of average speed is too bad
- m_averageSpeed = (double)( m_transferringPosition - m_transferStartPosition ) / (double)m_timeTransferStarted.secsTo( TQDateTime::tqcurrentDateTime() );
+ m_averageSpeed = (double)( m_transferringPosition - m_transferStartPosition ) / (double)m_timeTransferStarted.secsTo( TQDateTime::currentDateTime() );
m_currentSpeed = (double)( m_transferLogPosition.last() - m_transferLogPosition.front() ) / (double)( m_transferLogTime.last() - m_transferLogTime.front() ) * 1000;
}
else // avoid zero devision
@@ -240,7 +240,7 @@ DccTransfer::DccType DccTransfer::getType() const
return m_type;
}
-DccTransfer::DcctqStatus DccTransfer::gettqStatus() const
+DccTransfer::DccStatus DccTransfer::getStatus() const
{
return m_status;
}
diff --git a/konversation/src/dcctransfer.h b/konversation/src/dcctransfer.h
index 64d3827..5765bdd 100644
--- a/konversation/src/dcctransfer.h
+++ b/konversation/src/dcctransfer.h
@@ -39,7 +39,7 @@ class DccTransfer : public TQObject
Send
};
- enum DcctqStatus
+ enum DccStatus
{
Configuring = 0, // Not queud yet (this means that user can't see the item at this time)
Queued, // Newly added DCC, waiting user's response
@@ -52,7 +52,7 @@ class DccTransfer : public TQObject
Aborted
};
- enum UnavailabletqStatus
+ enum UnavailableStatus
{
Calculating = -1,
NotInTransfer = -2,
@@ -66,7 +66,7 @@ class DccTransfer : public TQObject
DccTransfer( const DccTransfer& obj );
DccType getType() const;
- DcctqStatus gettqStatus() const;
+ DccStatus getStatus() const;
const TQString& getStatusDetail() const;
TQDateTime getTimeOffer() const;
int getConnectionId() const;
@@ -100,7 +100,7 @@ class DccTransfer : public TQObject
signals:
void transferStarted( DccTransfer* item );
void done( DccTransfer* item );
- void statusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus );
+ void statusChanged( DccTransfer* item, int newStatus, int oldStatus );
public slots:
virtual bool queue();
@@ -108,7 +108,7 @@ class DccTransfer : public TQObject
virtual void abort() {};
protected:
- void settqStatus( DcctqStatus status, const TQString& statusDetail = TQString() );
+ void setStatus( DccStatus status, const TQString& statusDetail = TQString() );
void startTransferLogger();
void finishTransferLogger();
@@ -122,7 +122,7 @@ class DccTransfer : public TQObject
protected:
// transfer information
DccType m_type;
- DcctqStatus m_status;
+ DccStatus m_status;
TQString m_statusDetail;
bool m_resumed;
bool m_reverse;
diff --git a/konversation/src/dcctransferdetailedinfopanel.cpp b/konversation/src/dcctransferdetailedinfopanel.cpp
index 635faf2..6bd6961 100644
--- a/konversation/src/dcctransferdetailedinfopanel.cpp
+++ b/konversation/src/dcctransferdetailedinfopanel.cpp
@@ -61,7 +61,7 @@ void DccTransferDetailedInfoPanel::setItem( DccTransferPanelItem* item )
// If the file is already being transferred, the timer must be started here,
// otherwise the information will not be updated every 0.5sec
- if (m_item->transfer()->gettqStatus() == DccTransfer::Transferring)
+ if (m_item->transfer()->getStatus() == DccTransfer::Transferring)
m_autoViewUpdateTimer->start(500, false);
connect( m_item->transfer(), TQT_SIGNAL( statusChanged( DccTransfer*, int, int ) ), this, TQT_SLOT( slotTransferStatusChanged( DccTransfer*, int, int ) ) );
@@ -83,10 +83,10 @@ void DccTransferDetailedInfoPanel::updateView()
// Location:
m_urlreqLocation->setURL( transfer->getFileURL().prettyURL() );
- //m_urlreqLocation->lineEdit()->setFocusPolicy( transfer->gettqStatus() == DccTransfer::Queued ? StrongFocus : ClickFocus );
- m_urlreqLocation->lineEdit()->setReadOnly( transfer->gettqStatus() != DccTransfer::Queued );
- m_urlreqLocation->lineEdit()->setFrame( transfer->gettqStatus() == DccTransfer::Queued );
- m_urlreqLocation->button()->setEnabled( transfer->gettqStatus() == DccTransfer::Queued );
+ //m_urlreqLocation->lineEdit()->setFocusPolicy( transfer->getStatus() == DccTransfer::Queued ? StrongFocus : ClickFocus );
+ m_urlreqLocation->lineEdit()->setReadOnly( transfer->getStatus() != DccTransfer::Queued );
+ m_urlreqLocation->lineEdit()->setFrame( transfer->getStatus() == DccTransfer::Queued );
+ m_urlreqLocation->button()->setEnabled( transfer->getStatus() == DccTransfer::Queued );
m_buttonOpenFolder->setEnabled( !m_urlreqLocation->lineEdit()->text().isEmpty() );
// Partner:
@@ -110,11 +110,11 @@ void DccTransferDetailedInfoPanel::updateView()
else
m_labelSelf->setText( i18n( "%1 (port %2)" ).tqarg( transfer->getOwnIp() ).tqarg( transfer->getOwnPort() ) );
- // tqStatus:
- if ( transfer->gettqStatus() == DccTransfer::Transferring )
- m_labeltqStatus->setText( m_item->getStatusText() + " ( " + m_item->getCurrentSpeedPrettyText() + " )" );
+ // Status:
+ if ( transfer->getStatus() == DccTransfer::Transferring )
+ m_labelStatus->setText( m_item->getStatusText() + " ( " + m_item->getCurrentSpeedPrettyText() + " )" );
else
- m_labeltqStatus->setText( transfer->getStatusDetail().isEmpty() ? m_item->getStatusText() : m_item->getStatusText() + " (" + transfer->getStatusDetail() + ')' );
+ m_labelStatus->setText( transfer->getStatusDetail().isEmpty() ? m_item->getStatusText() : m_item->getStatusText() + " (" + transfer->getStatusDetail() + ')' );
// Progress:
m_progress->setProgress( transfer->getProgress() );
@@ -146,7 +146,7 @@ void DccTransferDetailedInfoPanel::updateView()
// The transfer is still in progress
if ( transfer->getTimeTransferFinished().isNull() )
- transferringTime = transfer->getTimeTransferStarted().secsTo( TQDateTime::tqcurrentDateTime() );
+ transferringTime = transfer->getTimeTransferStarted().secsTo( TQDateTime::currentDateTime() );
// The transfer has finished
else
transferringTime = transfer->getTimeTransferStarted().secsTo( transfer->getTimeTransferFinished() );
@@ -176,15 +176,15 @@ void DccTransferDetailedInfoPanel::updateView()
m_labelTimeFinished->setText( "" );
}
-void DccTransferDetailedInfoPanel::slotTransferStatusChanged( DccTransfer* /* transfer */, int newtqStatus, int oldtqStatus )
+void DccTransferDetailedInfoPanel::slotTransferStatusChanged( DccTransfer* /* transfer */, int newStatus, int oldStatus )
{
updateView();
- if ( newtqStatus == DccTransfer::Transferring )
+ if ( newStatus == DccTransfer::Transferring )
{
// start auto view-update timer
m_autoViewUpdateTimer->start( 500, false );
}
- else if ( oldtqStatus == DccTransfer::Transferring )
+ else if ( oldStatus == DccTransfer::Transferring )
{
// stop auto view-update timer
m_autoViewUpdateTimer->stop();
diff --git a/konversation/src/dcctransferdetailedinfopanel.h b/konversation/src/dcctransferdetailedinfopanel.h
index 7fbcf65..8433822 100644
--- a/konversation/src/dcctransferdetailedinfopanel.h
+++ b/konversation/src/dcctransferdetailedinfopanel.h
@@ -33,7 +33,7 @@ class DccTransferDetailedInfoPanel : public DccTransferDetailedInfoPanelUI
private slots:
void updateView();
- void slotTransferStatusChanged( DccTransfer* transfer, int newtqStatus, int oldtqStatus );
+ void slotTransferStatusChanged( DccTransfer* transfer, int newStatus, int oldStatus );
void slotLocationChanged( const TQString& url );
void slotOpenFolderButtonClicked();
diff --git a/konversation/src/dcctransferdetailedinfopanelui.ui b/konversation/src/dcctransferdetailedinfopanelui.ui
index 24f6742..b11b2e1 100644
--- a/konversation/src/dcctransferdetailedinfopanelui.ui
+++ b/konversation/src/dcctransferdetailedinfopanelui.ui
@@ -71,7 +71,7 @@
<cstring>textLabel10</cstring>
</property>
<property name="text">
- <string>tqStatus:</string>
+ <string>Status:</string>
</property>
</widget>
<widget class="TQLabel" row="6" column="0">
@@ -92,7 +92,7 @@
</widget>
<widget class="TQLabel" row="4" column="1">
<property name="name">
- <cstring>m_labeltqStatus</cstring>
+ <cstring>m_labelStatus</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="1">
@@ -188,7 +188,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -218,7 +218,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -240,7 +240,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -278,7 +278,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -316,7 +316,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -386,7 +386,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -424,7 +424,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
@@ -470,7 +470,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>110</width>
<height>20</height>
diff --git a/konversation/src/dcctransfermanager.cpp b/konversation/src/dcctransfermanager.cpp
index 3e4357c..ec36840 100644
--- a/konversation/src/dcctransfermanager.cpp
+++ b/konversation/src/dcctransfermanager.cpp
@@ -62,7 +62,7 @@ DccTransferRecv* DccTransferManager::resumeDownload( int connectionId, const TQS
TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{
- if ( ( (*it)->gettqStatus() == DccTransfer::Queued || (*it)->gettqStatus() == DccTransfer::WaitingRemote ) &&
+ if ( ( (*it)->getStatus() == DccTransfer::Queued || (*it)->getStatus() == DccTransfer::WaitingRemote ) &&
(*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName &&
@@ -92,7 +92,7 @@ DccTransferSend* DccTransferManager::resumeUpload( int connectionId, const TQStr
TQValueListConstIterator< DccTransferSend* > it;
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{
- if ( ( (*it)->gettqStatus() == DccTransfer::Queued || (*it)->gettqStatus() == DccTransfer::WaitingRemote ) &&
+ if ( ( (*it)->getStatus() == DccTransfer::Queued || (*it)->getStatus() == DccTransfer::WaitingRemote ) &&
(*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName &&
@@ -124,7 +124,7 @@ DccTransferSend* DccTransferManager::startReverseSending( int connectionId, cons
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{
if (
- (*it)->gettqStatus() == DccTransfer::WaitingRemote &&
+ (*it)->getStatus() == DccTransfer::WaitingRemote &&
(*it)->getConnectionId() == connectionId &&
(*it)->getPartnerNick() == partnerNick &&
(*it)->getFileName() == fileName &&
@@ -155,8 +155,8 @@ bool DccTransferManager::isLocalFileInWritingProcess( const KURL& url ) const
TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{
- if ( ( (*it)->gettqStatus() == DccTransfer::Connecting ||
- (*it)->gettqStatus() == DccTransfer::Transferring ) &&
+ if ( ( (*it)->getStatus() == DccTransfer::Connecting ||
+ (*it)->getStatus() == DccTransfer::Transferring ) &&
(*it)->getFileURL() == url )
{
return true;
@@ -175,25 +175,25 @@ bool DccTransferManager::hasActiveTransfers()
TQValueListConstIterator< DccTransferSend* > it;
for ( it = m_sendItems.begin() ; it != m_sendItems.end() ; ++it )
{
- if ((*it)->gettqStatus() == DccTransfer::Transferring)
+ if ((*it)->getStatus() == DccTransfer::Transferring)
return true;
}
TQValueListConstIterator< DccTransferRecv* > it2;
for ( it2 = m_recvItems.begin() ; it2 != m_recvItems.end() ; ++it2 )
{
- if ((*it2)->gettqStatus() == DccTransfer::Transferring)
+ if ((*it2)->getStatus() == DccTransfer::Transferring)
return true;
}
return false;
}
-void DccTransferManager::slotTransferStatusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus )
+void DccTransferManager::slotTransferStatusChanged( DccTransfer* item, int newStatus, int oldStatus )
{
- kdDebug() << "DccTransferManager::slotTransferStatusChanged(): " << oldtqStatus << " -> " << newtqStatus << " " << item->getFileName() << " (" << item->getType() << ")" << endl;
+ kdDebug() << "DccTransferManager::slotTransferStatusChanged(): " << oldStatus << " -> " << newStatus << " " << item->getFileName() << " (" << item->getType() << ")" << endl;
- if ( newtqStatus == DccTransfer::Queued )
+ if ( newStatus == DccTransfer::Queued )
emit newTransferQueued( item );
}
@@ -205,7 +205,7 @@ void DccTransferManager::slotSettingsChanged()
TQValueListConstIterator< DccTransferRecv* > it;
for ( it = m_recvItems.begin() ; it != m_recvItems.end() ; ++it )
{
- if ( (*it)->gettqStatus() == DccTransfer::Queued &&
+ if ( (*it)->getStatus() == DccTransfer::Queued &&
(*it)->getFileURL().directory() == m_defaultIncomingFolder )
{
KURL url;
diff --git a/konversation/src/dcctransfermanager.h b/konversation/src/dcctransfermanager.h
index c5753f7..0a34c3b 100644
--- a/konversation/src/dcctransfermanager.h
+++ b/konversation/src/dcctransfermanager.h
@@ -79,7 +79,7 @@ class DccTransferManager : public TQObject
void initTransfer( DccTransfer* transfer );
private slots:
- void slotTransferStatusChanged( DccTransfer* item, int newtqStatus, int oldtqStatus );
+ void slotTransferStatusChanged( DccTransfer* item, int newStatus, int oldStatus );
void removeSendItem( DccTransfer* item );
void removeRecvItem( DccTransfer* item );
diff --git a/konversation/src/dcctransferpanel.cpp b/konversation/src/dcctransferpanel.cpp
index 385850b..8b89afa 100644
--- a/konversation/src/dcctransferpanel.cpp
+++ b/konversation/src/dcctransferpanel.cpp
@@ -76,7 +76,7 @@ void DccTransferPanel::initGUI()
//m_listView->setColumnText(Column::TypeIcon, "");
m_listView->setColumnText(Column::OfferDate, i18n("Started at"));
- m_listView->setColumnText(Column::tqStatus, i18n("Status"));
+ m_listView->setColumnText(Column::Status, i18n("Status"));
m_listView->setColumnText(Column::FileName, i18n("File"));
m_listView->setColumnText(Column::PartnerNick, i18n("Partner"));
m_listView->setColumnText(Column::Progress, i18n("Progress"));
@@ -201,7 +201,7 @@ void DccTransferPanel::updateButton()
DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer::DccType type = item->transfer()->getType();
- DccTransfer::DcctqStatus status = item->transfer()->gettqStatus();
+ DccTransfer::DccStatus status = item->transfer()->getStatus();
selectAll = true;
selectAllCompleted |= ( status >= DccTransfer::Done );
@@ -276,7 +276,7 @@ void DccTransferPanel::acceptDcc()
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer();
- if( transfer->getType() == DccTransfer::Receive && transfer->gettqStatus() == DccTransfer::Queued )
+ if( transfer->getType() == DccTransfer::Receive && transfer->getStatus() == DccTransfer::Queued )
transfer->start();
}
++it;
@@ -292,7 +292,7 @@ void DccTransferPanel::abortDcc()
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer();
- if( transfer->gettqStatus() < DccTransfer::Done )
+ if( transfer->getStatus() < DccTransfer::Done )
transfer->abort();
}
++it;
@@ -308,7 +308,7 @@ void DccTransferPanel::resendFile()
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer();
- if( transfer->getType() == DccTransfer::Send && transfer->gettqStatus() >= DccTransfer::Done )
+ if( transfer->getType() == DccTransfer::Send && transfer->getStatus() >= DccTransfer::Done )
{
DccTransferSend* newTransfer = KonversationApplication::instance()->getDccTransferManager()->newUpload();
@@ -335,7 +335,7 @@ void DccTransferPanel::clearDcc()
{
DccTransferPanelItem* item = static_cast<DccTransferPanelItem*>( it.current() );
// should we check that [item] is not null?
- if( it.current()->isSelected() && item->transfer()->gettqStatus() >= DccTransfer::Done )
+ if( it.current()->isSelected() && item->transfer()->getStatus() >= DccTransfer::Done )
lst.append( it.current() );
++it;
}
@@ -377,7 +377,7 @@ void DccTransferPanel::runDcc()
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
DccTransfer* transfer = item->transfer();
- if( transfer->getType() == DccTransfer::Send || transfer->gettqStatus() == DccTransfer::Done )
+ if( transfer->getType() == DccTransfer::Send || transfer->getStatus() == DccTransfer::Done )
item->runFile();
}
++it;
@@ -392,7 +392,7 @@ void DccTransferPanel::showFileInfo()
if( it.current()->isSelected() )
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
- if( item->transfer()->getType() == DccTransfer::Send || item->transfer()->gettqStatus() == DccTransfer::Done )
+ if( item->transfer()->getType() == DccTransfer::Send || item->transfer()->getStatus() == DccTransfer::Done )
item->openFileInfoDialog();
}
++it;
@@ -416,7 +416,7 @@ void DccTransferPanel::selectAllCompleted()
while ( it.current() )
{
DccTransferPanelItem* item=static_cast<DccTransferPanelItem*>( it.current() );
- m_listView->setSelected( *it, item->transfer()->gettqStatus() >= DccTransfer::Done );
+ m_listView->setSelected( *it, item->transfer()->getStatus() >= DccTransfer::Done );
++it;
}
updateButton();
diff --git a/konversation/src/dcctransferpanel.h b/konversation/src/dcctransferpanel.h
index 09afaeb..7b88bcb 100644
--- a/konversation/src/dcctransferpanel.h
+++ b/konversation/src/dcctransferpanel.h
@@ -39,7 +39,7 @@ class DccTransferPanel : public ChatWindow
{
TypeIcon,
OfferDate,
- tqStatus,
+ Status,
FileName,
PartnerNick,
Progress,
diff --git a/konversation/src/dcctransferpanelitem.cpp b/konversation/src/dcctransferpanelitem.cpp
index 8737a3b..d2cb9ee 100644
--- a/konversation/src/dcctransferpanelitem.cpp
+++ b/konversation/src/dcctransferpanelitem.cpp
@@ -67,10 +67,10 @@ DccTransferPanelItem::~DccTransferPanelItem()
void DccTransferPanelItem::updateView()
{
setPixmap( DccTransferPanel::Column::TypeIcon, getTypeIcon() );
- setPixmap( DccTransferPanel::Column::tqStatus, getStatusIcon() );
+ setPixmap( DccTransferPanel::Column::Status, getStatusIcon() );
setText( DccTransferPanel::Column::OfferDate, m_transfer->getTimeOffer().toString( "hh:mm:ss" ) );
- setText( DccTransferPanel::Column::tqStatus, getStatusText() );
+ setText( DccTransferPanel::Column::Status, getStatusText() );
setText( DccTransferPanel::Column::FileName, m_transfer->getFileName() );
setText( DccTransferPanel::Column::PartnerNick, m_transfer->getPartnerNick() );
setText( DccTransferPanel::Column::Position, getPositionPrettyText() );
@@ -104,9 +104,9 @@ int DccTransferPanelItem::compare( TQListViewItem* i, int col, bool ascending )
if ( m_transfer->getTimeOffer() < item->transfer()->getTimeOffer() ) return -1;
return 0;
break;
- case DccTransferPanel::Column::tqStatus:
- if ( m_transfer->gettqStatus() > item->transfer()->gettqStatus() ) return 1;
- if ( m_transfer->gettqStatus() < item->transfer()->gettqStatus() ) return -1;
+ case DccTransferPanel::Column::Status:
+ if ( m_transfer->getStatus() > item->transfer()->getStatus() ) return 1;
+ if ( m_transfer->getStatus() < item->transfer()->getStatus() ) return -1;
return 0;
break;
case DccTransferPanel::Column::Position:
@@ -130,11 +130,11 @@ int DccTransferPanelItem::compare( TQListViewItem* i, int col, bool ascending )
return TQListViewItem::compare( i, col, ascending );
}
-void DccTransferPanelItem::slotStatusChanged( DccTransfer* /* transfer */, int newtqStatus, int /* oldtqStatus */ )
+void DccTransferPanelItem::slotStatusChanged( DccTransfer* /* transfer */, int newStatus, int /* oldStatus */ )
{
updateView();
- if ( newtqStatus == DccTransfer::Transferring )
+ if ( newStatus == DccTransfer::Transferring )
startAutoViewUpdate();
}
@@ -167,7 +167,7 @@ void DccTransferPanelItem::showProgressBar()
{
if ( m_transfer->getFileSize() )
{
- TQRect rect = listView()->tqitemRect( this );
+ TQRect rect = listView()->itemRect( this );
TQHeader *head = listView()->header();
rect.setLeft( head->sectionPos( DccTransferPanel::Column::Progress ) - head->offset() );
rect.setWidth( head->sectionSize( DccTransferPanel::Column::Progress ) );
@@ -178,13 +178,13 @@ void DccTransferPanelItem::showProgressBar()
void DccTransferPanelItem::runFile()
{
- if ( m_transfer->getType() == DccTransfer::Send || m_transfer->gettqStatus() == DccTransfer::Done )
+ if ( m_transfer->getType() == DccTransfer::Send || m_transfer->getStatus() == DccTransfer::Done )
new KRun( m_transfer->getFileURL(), listView() );
}
void DccTransferPanelItem::openFileInfoDialog()
{
- if ( m_transfer->getType() == DccTransfer::Send || m_transfer->gettqStatus() == DccTransfer::Done )
+ if ( m_transfer->getType() == DccTransfer::Send || m_transfer->getStatus() == DccTransfer::Done )
{
TQStringList infoList;
@@ -278,7 +278,7 @@ TQPixmap DccTransferPanelItem::getTypeIcon() const
TQPixmap DccTransferPanelItem::getStatusIcon() const
{
TQString icon;
- switch ( m_transfer->gettqStatus() )
+ switch ( m_transfer->getStatus() )
{
case DccTransfer::Queued:
icon = "player_stop";
@@ -306,7 +306,7 @@ TQPixmap DccTransferPanelItem::getStatusIcon() const
TQString DccTransferPanelItem::getStatusText() const
{
- DccTransfer::DcctqStatus status = m_transfer->gettqStatus();
+ DccTransfer::DccStatus status = m_transfer->getStatus();
DccTransfer::DccType type = m_transfer->getType();
if ( status == DccTransfer::Queued )
diff --git a/konversation/src/dcctransferpanelitem.h b/konversation/src/dcctransferpanelitem.h
index 7e1b113..eef6305 100644
--- a/konversation/src/dcctransferpanelitem.h
+++ b/konversation/src/dcctransferpanelitem.h
@@ -71,7 +71,7 @@ class DccTransferPanelItem : public TQObject, public KListViewItem
static TQString secToHMS( long sec );
private slots:
- void slotStatusChanged( DccTransfer* transfer, int newtqStatus, int oldtqStatus );
+ void slotStatusChanged( DccTransfer* transfer, int newStatus, int oldStatus );
void updateView();
private:
diff --git a/konversation/src/dcctransferrecv.cpp b/konversation/src/dcctransferrecv.cpp
index 6a5820a..9922bbb 100644
--- a/konversation/src/dcctransferrecv.cpp
+++ b/konversation/src/dcctransferrecv.cpp
@@ -113,44 +113,44 @@ void DccTransferRecv::cleanUp()
// just for convenience
void DccTransferRecv::failed( const TQString& errorMessage )
{
- settqStatus( Failed, errorMessage );
+ setStatus( Failed, errorMessage );
cleanUp();
emit done( this );
}
void DccTransferRecv::setPartnerIp( const TQString& ip )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_partnerIp = ip;
}
void DccTransferRecv::setPartnerPort( const TQString& port )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_partnerPort = port;
}
void DccTransferRecv::setFileSize( unsigned long fileSize )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_fileSize = fileSize;
}
void DccTransferRecv::setFileName( const TQString& fileName )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_fileName = fileName;
}
void DccTransferRecv::setFileURL( const KURL& url )
{
- if ( gettqStatus() == Configuring || gettqStatus() == Queued )
+ if ( getStatus() == Configuring || getStatus() == Queued )
m_fileURL = url;
}
void DccTransferRecv::setReverse( bool reverse, const TQString& reverseToken )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
{
m_reverse = reverse;
if ( reverse )
@@ -165,7 +165,7 @@ bool DccTransferRecv::queue()
{
kdDebug() << "DccTransferRecv::queue()" << endl;
- if ( gettqStatus() != Configuring )
+ if ( getStatus() != Configuring )
return false;
if ( m_partnerIp.isEmpty() || m_partnerPort.isEmpty() )
@@ -237,7 +237,7 @@ void DccTransferRecv::abort() // public slot
m_writeCacheHandler->write( true ); // flush
}
- settqStatus( Aborted );
+ setStatus( Aborted );
cleanUp();
emit done( this );
}
@@ -246,10 +246,10 @@ void DccTransferRecv::start() // public slot
{
kdDebug() << "DccTransferRecv::start() [BEGIN]" << endl;
- if ( gettqStatus() != Queued )
+ if ( getStatus() != Queued )
return;
- settqStatus( Preparing );
+ setStatus( Preparing );
prepareLocalKio( false, false );
@@ -305,7 +305,7 @@ void DccTransferRecv::askAndPrepareLocalKio( const TQString& message, int enable
break;
case DccResumeDialog::RA_Cancel:
default:
- settqStatus( Queued );
+ setStatus( Queued );
}
}
@@ -444,7 +444,7 @@ void DccTransferRecv::connectWithSender()
m_ownIp = DccCommon::getOwnIp( server );
m_ownPort = TQString::number( DccCommon::getServerSocketPort( m_serverSocket ) );
- settqStatus( WaitingRemote, i18n( "Waiting for connection" ) );
+ setStatus( WaitingRemote, i18n( "Waiting for connection" ) );
server->dccReverseSendAck( m_partnerNick, m_fileName, DccCommon::textIpToNumericalIp( m_ownIp ), m_ownPort, m_fileSize, m_reverseToken );
@@ -460,7 +460,7 @@ void DccTransferRecv::requestResume()
{
kdDebug() << "DccTransferRecv::requestResume()" << endl;
- settqStatus( WaitingRemote, i18n( "Waiting for remote host's acceptance" ) );
+ setStatus( WaitingRemote, i18n( "Waiting for remote host's acceptance" ) );
startConnectionTimer( 30 );
@@ -503,7 +503,7 @@ void DccTransferRecv::connectToSendServer()
// connect to sender
- settqStatus( Connecting );
+ setStatus( Connecting );
m_recvSocket = new KNetwork::KStreamSocket( m_partnerIp, m_partnerPort, this);
@@ -577,7 +577,7 @@ void DccTransferRecv::startReceiving()
connect( m_recvSocket, TQT_SIGNAL( readyWrite() ), this, TQT_SLOT( sendAck() ) );
connect( m_recvSocket, TQT_SIGNAL( closed() ), this, TQT_SLOT( slotSocketClosed() ) );
- settqStatus( Transferring );
+ setStatus( Transferring );
m_transferStartPosition = m_transferringPosition;
@@ -633,7 +633,7 @@ void DccTransferRecv::sendAck() // slot
void DccTransferRecv::slotLocalWriteDone() // <-WriteCacheHandler::done()
{
kdDebug() << "DccTransferRecv::slotLocalWriteDone()" << endl;
- settqStatus( Done );
+ setStatus( Done );
cleanUp();
emit done( this );
}
@@ -670,7 +670,7 @@ void DccTransferRecv::connectionTimeout() // slot
void DccTransferRecv::slotSocketClosed()
{
finishTransferLogger();
- if ( gettqStatus() == Transferring )
+ if ( getStatus() == Transferring )
failed( i18n( "Remote user disconnected" ) );
}
diff --git a/konversation/src/dcctransfersend.cpp b/konversation/src/dcctransfersend.cpp
index 295a12b..db0bad2 100644
--- a/konversation/src/dcctransfersend.cpp
+++ b/konversation/src/dcctransfersend.cpp
@@ -91,38 +91,38 @@ void DccTransferSend::cleanUp()
// just for convenience
void DccTransferSend::failed( const TQString& errorMessage )
{
- settqStatus( Failed, errorMessage );
+ setStatus( Failed, errorMessage );
cleanUp();
emit done( this );
}
void DccTransferSend::setFileURL( const KURL& url )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_fileURL = url;
}
void DccTransferSend::setFileName( const TQString& fileName )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_fileName = fileName;
}
void DccTransferSend::setOwnIp( const TQString& ownIp )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_ownIp = ownIp;
}
void DccTransferSend::setFileSize( KIO::filesize_t fileSize )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_fileSize = fileSize;
}
void DccTransferSend::setReverse( bool reverse )
{
- if ( gettqStatus() == Configuring )
+ if ( getStatus() == Configuring )
m_reverse = reverse;
}
@@ -130,7 +130,7 @@ bool DccTransferSend::queue()
{
kdDebug() << "DccTransferSend::queue()" << endl;
- if ( gettqStatus() != Configuring )
+ if ( getStatus() != Configuring )
return false;
if ( m_ownIp.isEmpty() )
@@ -217,7 +217,7 @@ void DccTransferSend::abort() // public slot
{
kdDebug() << "DccTransferSend::abort()" << endl;
- settqStatus( Aborted );
+ setStatus( Aborted );
cleanUp();
emit done( this );
}
@@ -226,7 +226,7 @@ void DccTransferSend::start() // public slot
{
kdDebug() << "DccTransferSend::start()" << endl;
- if ( gettqStatus() != Queued )
+ if ( getStatus() != Queued )
return;
// common procedure
@@ -283,7 +283,7 @@ void DccTransferSend::start() // public slot
server->dccPassiveSendRequest( m_partnerNick, m_fileName, getNumericalIpText( m_ownIp ), m_fileSize, m_reverseToken );
}
- settqStatus( WaitingRemote, i18n( "Waiting remote user's acceptance" ) );
+ setStatus( WaitingRemote, i18n( "Waiting remote user's acceptance" ) );
}
void DccTransferSend::connectToReceiver( const TQString& partnerHost, const TQString& partnerPort )
@@ -300,7 +300,7 @@ void DccTransferSend::connectToReceiver( const TQString& partnerHost, const TQSt
connect( m_sendSocket, TQT_SIGNAL( connected( const KResolverEntry& ) ), this, TQT_SLOT( startSending() ) );
connect( m_sendSocket, TQT_SIGNAL( gotError( int ) ), this, TQT_SLOT( slotConnectionFailed( int ) ) );
- settqStatus( Connecting );
+ setStatus( Connecting );
m_sendSocket->connect();
}
@@ -309,7 +309,7 @@ bool DccTransferSend::setResume( unsigned long position )
{
kdDebug() << "DccTransferSend::setResume(): position=" << position << endl;
- if ( gettqStatus() > WaitingRemote )
+ if ( getStatus() > WaitingRemote )
return false;
if ( position >= m_fileSize )
@@ -359,7 +359,7 @@ void DccTransferSend::startSending()
m_file.at( m_transferringPosition );
m_transferStartPosition = m_transferringPosition;
- settqStatus( Transferring );
+ setStatus( Transferring );
m_sendSocket->enableWrite( true );
m_sendSocket->enableRead( m_fastSend );
startTransferLogger(); // initialize CPS counter, ETA counter, etc...
@@ -407,7 +407,7 @@ void DccTransferSend::getAck() // slot
{
kdDebug() << "DccTransferSend::getAck(): Received final ACK." << endl;
finishTransferLogger();
- settqStatus( Done );
+ setStatus( Done );
cleanUp();
emit done( this );
break; // for safe
@@ -457,7 +457,7 @@ void DccTransferSend::slotSendSocketClosed()
{
kdDebug() << "DccTransferSend::slotSendSocketClosed()" << endl;
finishTransferLogger();
- if ( gettqStatus() == Transferring && m_transferringPosition < (KIO::fileoffset_t)m_fileSize )
+ if ( getStatus() == Transferring && m_transferringPosition < (KIO::fileoffset_t)m_fileSize )
failed( i18n( "Remote user disconnected" ) );
}
diff --git a/konversation/src/fontappearance_preferences.ui b/konversation/src/fontappearance_preferences.ui
index 389a252..a50b3a0 100644
--- a/konversation/src/fontappearance_preferences.ui
+++ b/konversation/src/fontappearance_preferences.ui
@@ -54,7 +54,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>161</height>
diff --git a/konversation/src/generalbehavior_preferences.ui b/konversation/src/generalbehavior_preferences.ui
index 164ca58..0354e67 100644
--- a/konversation/src/generalbehavior_preferences.ui
+++ b/konversation/src/generalbehavior_preferences.ui
@@ -60,7 +60,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>31</width>
<height>20</height>
@@ -88,7 +88,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>31</width>
<height>20</height>
@@ -301,7 +301,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
diff --git a/konversation/src/highlight_preferencesui.ui b/konversation/src/highlight_preferencesui.ui
index 65baf8f..3b42a4d 100644
--- a/konversation/src/highlight_preferencesui.ui
+++ b/konversation/src/highlight_preferencesui.ui
@@ -141,7 +141,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>250</height>
@@ -362,7 +362,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>120</width>
<height>20</height>
@@ -379,7 +379,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -396,7 +396,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
diff --git a/konversation/src/ignore_preferencesui.ui b/konversation/src/ignore_preferencesui.ui
index b726d29..88aa423 100644
--- a/konversation/src/ignore_preferencesui.ui
+++ b/konversation/src/ignore_preferencesui.ui
@@ -185,7 +185,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>40</height>
diff --git a/konversation/src/inputfilter.cpp b/konversation/src/inputfilter.cpp
index f597812..f2e78ec 100644
--- a/konversation/src/inputfilter.cpp
+++ b/konversation/src/inputfilter.cpp
@@ -371,7 +371,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
i18n("Received CTCP-%1 request from %2, sending answer.")
.tqarg("TIME").tqarg(sourceNick)
);
- server->ctcpReply(sourceNick,TQString("TIME ")+TQDateTime::tqcurrentDateTime().toString());
+ server->ctcpReply(sourceNick,TQString("TIME ")+TQDateTime::currentDateTime().toString());
}
// No known CTCP request, give a general message
@@ -431,7 +431,7 @@ void InputFilter::parseClientCommand(const TQString &prefix, const TQString &com
// pong reply, calculate turnaround time
if(replyReason.lower()=="ping")
{
- int dateArrived=TQDateTime::tqcurrentDateTime().toTime_t();
+ int dateArrived=TQDateTime::currentDateTime().toTime_t();
int dateSent=reply.toInt();
int time = dateArrived-dateSent;
TQString unit = "seconds";
diff --git a/konversation/src/ircinput.cpp b/konversation/src/ircinput.cpp
index 568adc9..20d3edf 100644
--- a/konversation/src/ircinput.cpp
+++ b/konversation/src/ircinput.cpp
@@ -61,7 +61,7 @@ IRCInput::IRCInput(TQWidget* parent) : KTextEdit(parent)
connect(completionBox, TQT_SIGNAL(activated(const TQString&)), this, TQT_SLOT(insertCompletion(const TQString&)));
// widget may not be resized vertically
- tqsetSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed));
+ setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,TQSizePolicy::Fixed));
//NoWrap coupled with the size policy constrains the line edit to be one row high
setWordWrap(m_multiRow ? WidgetWidth : NoWrap);
@@ -130,7 +130,7 @@ void IRCInput::updateAppearance()
{
m_multiRow = Preferences::useMultiRowInputBox();
setWordWrap(m_multiRow ? WidgetWidth : NoWrap);
- m_lastHeight=heightForWidth(tqsizeHint().width());
+ m_lastHeight=heightForWidth(sizeHint().width());
ensureCursorVisible(); //appears to trigger updateGeometry
}
@@ -144,7 +144,7 @@ void IRCInput::resizeContents( int w, int h )
}
// widget must be only one line high - luckily QT will enforce this via wrappping policy
-TQSize IRCInput::tqsizeHint() const
+TQSize IRCInput::sizeHint() const
{
constPolish();
diff --git a/konversation/src/ircinput.h b/konversation/src/ircinput.h
index f372b24..f4fa095 100644
--- a/konversation/src/ircinput.h
+++ b/konversation/src/ircinput.h
@@ -38,7 +38,7 @@ class IRCInput : public KTextEdit
int getOldCursorPosition();
TQString lastCompletion() const { return m_lastCompletion; }
- virtual TQSize tqsizeHint() const;
+ virtual TQSize sizeHint() const;
TQString text() const;
signals:
diff --git a/konversation/src/ircview.cpp b/konversation/src/ircview.cpp
index 6b3342b..fb57094 100644
--- a/konversation/src/ircview.cpp
+++ b/konversation/src/ircview.cpp
@@ -532,7 +532,7 @@ bool doHighlight, bool parseURL, bool self)
(whoSent.find(needleReg) != -1));
// remember captured patterns for later
- captures=needleReg.tqcapturedTexts();
+ captures=needleReg.capturedTexts();
}
else
@@ -1709,7 +1709,7 @@ TQString IRCView::timeStamp()
}
else
{
- TQDate date = TQDate::tqcurrentDate();
+ TQDate date = TQDate::currentDate();
timeString = TQString("<font color=\"" +
timeColor + "\">[%1 %2]</font> ")
.tqarg(KGlobal::locale()->formatDate(date, true /*short format*/),
diff --git a/konversation/src/ircviewbox.cpp b/konversation/src/ircviewbox.cpp
index 9318cbf..24401dd 100644
--- a/konversation/src/ircviewbox.cpp
+++ b/konversation/src/ircviewbox.cpp
@@ -84,14 +84,14 @@ void IRCViewBox::searchNext(bool reversed)
if (match)
{
m_searchBar->setHasMatch(true);
- m_searchBar->settqStatus(TQPixmap(), "");
+ m_searchBar->setStatus(TQPixmap(), "");
return;
}
if (!m_matchedOnce)
{
m_searchBar->setHasMatch(false);
- m_searchBar->settqStatus(getIcon("messagebox_warning"),
+ m_searchBar->setStatus(getIcon("messagebox_warning"),
i18n("Phrase not found"));
return;
}
@@ -105,13 +105,13 @@ void IRCViewBox::searchNext(bool reversed)
if (!match)
{
m_searchBar->setHasMatch(false);
- m_searchBar->settqStatus(getIcon("messagebox_warning"),
+ m_searchBar->setStatus(getIcon("messagebox_warning"),
i18n("Phrase not found"));
return;
}
m_searchBar->setHasMatch(true);
- m_searchBar->settqStatus(getIcon("messagebox_info"),
+ m_searchBar->setStatus(getIcon("messagebox_info"),
i18n("Wrapped search"));
}
@@ -126,12 +126,12 @@ void IRCViewBox::slotSearchChanged(const TQString& pattern)
if (match)
{
m_searchBar->setHasMatch(true);
- m_searchBar->settqStatus(TQPixmap(), "");
+ m_searchBar->setStatus(TQPixmap(), "");
}
else
{
m_searchBar->setHasMatch(false);
- m_searchBar->settqStatus(getIcon("messagebox_warning"),
+ m_searchBar->setStatus(getIcon("messagebox_warning"),
i18n("Phrase not found"));
}
diff --git a/konversation/src/konversationapplication.cpp b/konversation/src/konversationapplication.cpp
index d8f5891..083a1ee 100644
--- a/konversation/src/konversationapplication.cpp
+++ b/konversation/src/konversationapplication.cpp
@@ -343,7 +343,7 @@ void KonversationApplication::readOptions()
osd->setShadow(Preferences::oSDDrawShadow());
osd->setOffset(Preferences::oSDOffsetX(), Preferences::oSDOffsetY());
- osd->tqsetAlignment((OSDWidget::Alignment)Preferences::oSDAlignment());
+ osd->setAlignment((OSDWidget::Alignment)Preferences::oSDAlignment());
if(Preferences::oSDUseCustomColors())
{
@@ -856,7 +856,7 @@ TQString KonversationApplication::doAutoreplace(const TQString& text,bool output
if(index != -1)
{
// remember captured patterns
- TQStringList captures = needleReg.tqcapturedTexts();
+ TQStringList captures = needleReg.capturedTexts();
// replace %0 - %9 in regex groups
for(unsigned int capture=0;capture<captures.count();capture++)
diff --git a/konversation/src/konversationstatusbar.cpp b/konversation/src/konversationstatusbar.cpp
index 86ddb24..bd8e61e 100644
--- a/konversation/src/konversationstatusbar.cpp
+++ b/konversation/src/konversationstatusbar.cpp
@@ -33,7 +33,7 @@ KonversationStatusBar::KonversationStatusBar(KonversationMainWindow* window)
m_mainLabel = new KSqueezedTextLabel(m_window->statusBar(),"mainLabel");
setMainLabelText(i18n("Ready."));
- m_mainLabel->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
+ m_mainLabel->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
m_mainLabel->setMinimumWidth(0);
// KSqueezedLabel calculates the wrong height. Popular workaround.
diff --git a/konversation/src/konvibookmarkhandler.cpp b/konversation/src/konvibookmarkhandler.cpp
index 79cf12a..5a76682 100644
--- a/konversation/src/konvibookmarkhandler.cpp
+++ b/konversation/src/konvibookmarkhandler.cpp
@@ -63,7 +63,7 @@ KonviBookmarkHandler::~KonviBookmarkHandler()
void KonviBookmarkHandler::slotEditBookmarks()
{
KProcess proc;
- proc << TQString::tqfromLatin1("keditbookmarks");
+ proc << TQString::fromLatin1("keditbookmarks");
proc << "--nobrowser";
proc << "--caption" << i18n("Konversation Bookmarks Editor");
proc << m_file;
diff --git a/konversation/src/linkaddressbook/addressbook.cpp b/konversation/src/linkaddressbook/addressbook.cpp
index 6a050af..7d09c49 100644
--- a/konversation/src/linkaddressbook/addressbook.cpp
+++ b/konversation/src/linkaddressbook/addressbook.cpp
@@ -98,7 +98,7 @@ namespace Konversation
kdDebug() << "Addressbook::presenceString() called with an empty uid" << endl;
return TQString("Error");
}
- switch( presencetqStatus(uid))
+ switch( presenceStatus(uid))
{
case 0:
return "";
@@ -113,7 +113,7 @@ namespace Konversation
}
return TQString("Error");
}
- int Addressbook::presencetqStatus(const TQString &uid)
+ int Addressbook::presenceStatus(const TQString &uid)
{
return presenceStatusByAddressee(addressBook->findByUid(uid));
}
@@ -125,7 +125,7 @@ namespace Konversation
kdDebug() << "Addressbook::canReceiveFiles() called with empty uid" << endl;
return false;
}
- int presence = presencetqStatus(uid);
+ int presence = presenceStatus(uid);
return (presence == 4) || (presence == 3);
}
@@ -137,7 +137,7 @@ namespace Konversation
return false;
}
//this should return false if they are offline.
- int result = presencetqStatus(uid);
+ int result = presenceStatus(uid);
if(result == 3 || result == 4) return true;
return false;
}
@@ -161,7 +161,7 @@ namespace Konversation
if(!isPresent(uid))
return TQPixmap();
- switch(presencetqStatus(uid))
+ switch(presenceStatus(uid))
{
case 0: //Unknown
case 1: //Offline
@@ -331,7 +331,7 @@ void Addressbook::emitContactPresenceChanged(const TQString &uid)
return;
};
- emitContactPresenceChanged(uid, presencetqStatus(uid));
+ emitContactPresenceChanged(uid, presenceStatus(uid));
}
} //NAMESPACE
diff --git a/konversation/src/linkaddressbook/addressbook.h b/konversation/src/linkaddressbook/addressbook.h
index 222a05f..95fc6c5 100644
--- a/konversation/src/linkaddressbook/addressbook.h
+++ b/konversation/src/linkaddressbook/addressbook.h
@@ -52,7 +52,7 @@ namespace Konversation
// metadata
TQPixmap icon( const TQString &uid );
TQString context( const TQString &uid );
- virtual int presencetqStatus(const TQString &uid);
+ virtual int presenceStatus(const TQString &uid);
// App capabilities
TQStringList protocols();
diff --git a/konversation/src/linkaddressbook/kimiface.h b/konversation/src/linkaddressbook/kimiface.h
index bd6ab85..257bb42 100644
--- a/konversation/src/linkaddressbook/kimiface.h
+++ b/konversation/src/linkaddressbook/kimiface.h
@@ -88,7 +88,7 @@ class KIMIface : virtual public DCOPObject
* @param uid the KABC uid you want the presence for.
* @return a numeric representation of presence - currently one of 0 (Unknown), 1 (Offline), 2 (Connecting), 3 (Away), 4 (Online)
*/
- virtual int presencetqStatus( const TQString & uid ) = 0;
+ virtual int presenceStatus( const TQString & uid ) = 0;
/**
* Indicate if a given uid can receive files
* @param uid the KABC uid you are interested in.
@@ -175,7 +175,7 @@ class KIMIface : virtual public DCOPObject
* Indicates that a contact's presence has changed
* @param uid the contact whose presence changed.
* @param appId the dcop application id of the program the signal originates from.
- * @param presence the new numeric presence @ref presencetqStatus
+ * @param presence the new numeric presence @ref presenceStatus
*/
void contactPresenceChanged( TQString uid, TQCString appId, int presence );
};
diff --git a/konversation/src/linkaddressbook/linkaddressbookui_base.ui b/konversation/src/linkaddressbook/linkaddressbookui_base.ui
index 5d630c4..e67d306 100644
--- a/konversation/src/linkaddressbook/linkaddressbookui_base.ui
+++ b/konversation/src/linkaddressbook/linkaddressbookui_base.ui
@@ -37,7 +37,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>405</width>
<height>20</height>
diff --git a/konversation/src/linkaddressbook/nicklisttooltip.cpp b/konversation/src/linkaddressbook/nicklisttooltip.cpp
index f49d7a0..732b32e 100644
--- a/konversation/src/linkaddressbook/nicklisttooltip.cpp
+++ b/konversation/src/linkaddressbook/nicklisttooltip.cpp
@@ -52,17 +52,17 @@ namespace Konversation
return;
TQString toolTip;
- TQRect tqitemRect = m_listView->tqitemRect( item );
+ TQRect itemRect = m_listView->itemRect( item );
uint leftMargin = m_listView->treeStepSize() *
( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) +
m_listView->itemMargin();
- uint xAdjust = tqitemRect.left() + leftMargin;
- uint yAdjust = tqitemRect.top();
+ uint xAdjust = itemRect.left() + leftMargin;
+ uint yAdjust = itemRect.top();
TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust );
toolTip = Konversation::removeIrcMarkup(nick->getChannelNick()->tooltip());
if(!toolTip.isEmpty())
- tip(tqitemRect, toolTip);
+ tip(itemRect, toolTip);
}
} // namespace Konversation
diff --git a/konversation/src/linkaddressbook/nicksonlinetooltip.cpp b/konversation/src/linkaddressbook/nicksonlinetooltip.cpp
index 6315e10..9c4df71 100644
--- a/konversation/src/linkaddressbook/nicksonlinetooltip.cpp
+++ b/konversation/src/linkaddressbook/nicksonlinetooltip.cpp
@@ -51,17 +51,17 @@ namespace Konversation
if(!nickInfo )
return;
TQString toolTip;
- TQRect tqitemRect = m_listView->tqitemRect( item );
+ TQRect itemRect = m_listView->itemRect( item );
uint leftMargin = m_listView->treeStepSize() *
( item->depth() + ( m_listView->rootIsDecorated() ? 1 : 0 ) ) +
m_listView->itemMargin();
- uint xAdjust = tqitemRect.left() + leftMargin;
- uint yAdjust = tqitemRect.top();
+ uint xAdjust = itemRect.left() + leftMargin;
+ uint yAdjust = itemRect.top();
TQPoint relativePos( pos.x() - xAdjust, pos.y() - yAdjust );
toolTip = nickInfo->tooltip();
if(!toolTip.isEmpty())
- tip(tqitemRect, toolTip);
+ tip(itemRect, toolTip);
}
} // namespace Konversation
diff --git a/konversation/src/log_preferences.ui b/konversation/src/log_preferences.ui
index 0ffdfc7..13326e6 100644
--- a/konversation/src/log_preferences.ui
+++ b/konversation/src/log_preferences.ui
@@ -92,7 +92,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>21</width>
<height>10</height>
diff --git a/konversation/src/multilinetextedit.cpp b/konversation/src/multilinetextedit.cpp
index 880d0d1..be42a1f 100644
--- a/konversation/src/multilinetextedit.cpp
+++ b/konversation/src/multilinetextedit.cpp
@@ -44,7 +44,7 @@ void MultilineTextEdit::drawWhitespaces()
TQPainter pa(viewport());
// get a sane color
- TQColor col=tqcolorGroup().link();
+ TQColor col=colorGroup().link();
// and a brush of the same color
TQBrush fillBrush(col);
// use it for line drawing
diff --git a/konversation/src/nickinfo.cpp b/konversation/src/nickinfo.cpp
index fb2cde4..17765ca 100644
--- a/konversation/src/nickinfo.cpp
+++ b/konversation/src/nickinfo.cpp
@@ -99,7 +99,7 @@ bool NickInfo::isIdentified() const { return m_identified; }
TQString NickInfo::getPrettyOnlineSince() const
{
TQString prettyOnlineSince;
- int daysto = m_onlineSince.date().daysTo( TQDate::tqcurrentDate());
+ int daysto = m_onlineSince.date().daysTo( TQDate::currentDate());
if(daysto == 0) prettyOnlineSince = i18n("Today");
else if(daysto == 1) prettyOnlineSince = i18n("Yesterday");
else prettyOnlineSince = m_onlineSince.toString("ddd d MMMM yyyy");
diff --git a/konversation/src/nicklistbehavior_preferencesui.ui b/konversation/src/nicklistbehavior_preferencesui.ui
index 3df61f0..53b06ae 100644
--- a/konversation/src/nicklistbehavior_preferencesui.ui
+++ b/konversation/src/nicklistbehavior_preferencesui.ui
@@ -54,7 +54,7 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
<widget class="TQCheckBox" row="3" column="0">
<property name="name">
- <cstring>kcfg_SortBytqStatus</cstring>
+ <cstring>kcfg_SortByStatus</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@@ -133,13 +133,13 @@ the Free Software Foundation; either version 2 of the License, or
</widget>
<connections>
<connection>
- <sender>kcfg_SortBytqStatus</sender>
+ <sender>kcfg_SortByStatus</sender>
<signal>toggled(bool)</signal>
<receiver>sortOrder</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
- <sender>kcfg_SortBytqStatus</sender>
+ <sender>kcfg_SortByStatus</sender>
<signal>toggled(bool)</signal>
<receiver>orderHintLabel</receiver>
<slot>setEnabled(bool)</slot>
@@ -148,7 +148,7 @@ the Free Software Foundation; either version 2 of the License, or
<tabstops>
<tabstop>kcfg_ChannelDoubleClickAction</tabstop>
<tabstop>kcfg_SortCaseInsensitive</tabstop>
- <tabstop>kcfg_SortBytqStatus</tabstop>
+ <tabstop>kcfg_SortByStatus</tabstop>
<tabstop>sortOrder</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
diff --git a/konversation/src/nicklistview.cpp b/konversation/src/nicklistview.cpp
index ab98437..26e6bdd 100644
--- a/konversation/src/nicklistview.cpp
+++ b/konversation/src/nicklistview.cpp
@@ -86,14 +86,14 @@ KListView(parent)
int newitem;
newitem = popup->insertItem(i18n("Open &Query"),Konversation::OpenQuery);
- popup->tqsetWhatsThis(newitem, "<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>");
+ popup->setWhatsThis(newitem, "<qt>Start a private chat between you and this person.<p/><em>Technical note:</em><br>The conversation between you and this person will be sent via the server. This means that the conversation will be affected by server lag, server stability, and will be terminated when you disconnect from the server.</qt>");
newitem = popup->insertItem(i18n("Open DCC &Chat"),Konversation::StartDccChat);
- popup->tqsetWhatsThis(newitem, "<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>");
+ popup->setWhatsThis(newitem, "<qt>Start a private <em>D</em>irect <em>C</em>lient <em>C</em>onnection chat between you and this person.<p/><em>Technical note:</em><br />The conversation between you and this person will be sent directly. This means it is independent from the server - so if the server connection fails, or use disconnect, your DCC Chat will be unaffected. It also means that no irc server admin can view or spy on this chat.</qt>");
if (kapp->authorize("allow_downloading"))
{
newitem = popup->insertItem(SmallIcon("2rightarrow"),i18n("Send &File..."),Konversation::DccSend);
- popup->tqsetWhatsThis(newitem, "<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>");
+ popup->setWhatsThis(newitem, "<qt>Send a file to this person. If you are having problem sending files, or they are sending slowly, see the Konversation Handbook and DCC preferences page.</qt>");
}
popup->insertItem(SmallIconSet("mail_generic"),i18n("&Send Email..."), Konversation::SendEmail);
diff --git a/konversation/src/nicksonline.cpp b/konversation/src/nicksonline.cpp
index 5cc7bf1..1dd88f2 100644
--- a/konversation/src/nicksonline.cpp
+++ b/konversation/src/nicksonline.cpp
@@ -102,7 +102,7 @@ NicksOnline::NicksOnline(TQWidget* parent): ChatWindow(parent)
"When you select a nickname in the list above, the buttons here are used "
"to associate the nickname with an entry in KAddressBook.");
TQWhatsThis::add(addressbookLabel, addressbookLabelWT);
- addressbookLabel->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+ addressbookLabel->setAlignment(TQt::AlignRight | TQt::AlignVCenter);
m_editContactButton = new TQPushButton(i18n("Edit C&ontact..."),
buttonBox, "nicksonline_editcontact_button");
TQString editContactButtonWT = i18n(
diff --git a/konversation/src/osd.cpp b/konversation/src/osd.cpp
index b228a73..8bd1745 100644
--- a/konversation/src/osd.cpp
+++ b/konversation/src/osd.cpp
@@ -206,7 +206,7 @@ void OSDWidget::setOffset( int /*x*/, int y )
reposition();
}
-void OSDWidget::tqsetAlignment( Alignment a )
+void OSDWidget::setAlignment( Alignment a )
{
m_tqalignment = a;
reposition();
@@ -402,7 +402,7 @@ void OSDPreviewWidget::mouseMoveEvent( TQMouseEvent *e )
// the code was taken from pilotDaemon.cc in KPilot
// static
-OSDWidget::KDesktopLocktqStatus OSDWidget::isKDesktopLockRunning()
+OSDWidget::KDesktopLockStatus OSDWidget::isKDesktopLockRunning()
{
if (!Preferences::oSDCheckDesktopLock())
return NotLocked;
diff --git a/konversation/src/osd.h b/konversation/src/osd.h
index 68bf408..f71f1d7 100644
--- a/konversation/src/osd.h
+++ b/konversation/src/osd.h
@@ -41,7 +41,7 @@ class OSDWidget : public TQWidget
void setTextColor(const TQColor &newcolor);
void setBackgroundColor(const TQColor &newColor);
void setOffset( int x, int y );
- void tqsetAlignment(Alignment);
+ void setAlignment(Alignment);
void setScreen(uint screen);
void setText(const TQString &text) { m_currentText = text; refresh(); }
@@ -79,8 +79,8 @@ class OSDWidget : public TQWidget
/* called after most set*() calls to update the OSD */
void refresh();
- enum KDesktopLocktqStatus { NotLocked=0, Locked=1, DCOPError=2 };
- static KDesktopLocktqStatus isKDesktopLockRunning();
+ enum KDesktopLockStatus { NotLocked=0, Locked=1, DCOPError=2 };
+ static KDesktopLockStatus isKDesktopLockRunning();
static const int MARGIN = 15;
diff --git a/konversation/src/osd_preferences.cpp b/konversation/src/osd_preferences.cpp
index aa68f83..7a765ef 100644
--- a/konversation/src/osd_preferences.cpp
+++ b/konversation/src/osd_preferences.cpp
@@ -108,7 +108,7 @@ void OSD_Config::saveSettings()
//x is ignored anyway, but leave incase we use in future
konvApp->osd->setOffset(kcfg_OSDOffsetX->value(), kcfg_OSDOffsetY->value());
- konvApp->osd->tqsetAlignment((OSDWidget::Alignment)kcfg_OSDAlignment->value());
+ konvApp->osd->setAlignment((OSDWidget::Alignment)kcfg_OSDAlignment->value());
}
}
@@ -116,7 +116,7 @@ void OSD_Config::saveSettings()
void OSD_Config::showEvent(TQShowEvent*)
{
//Update the preview
- m_pOSDPreview->tqsetAlignment((OSDWidget::Alignment)( kcfg_OSDAlignment->value() ) );
+ m_pOSDPreview->setAlignment((OSDWidget::Alignment)( kcfg_OSDAlignment->value() ) );
m_pOSDPreview->setOffset(kcfg_OSDOffsetX->value(),kcfg_OSDOffsetY->value());
m_pOSDPreview->setShown(kcfg_UseOSD->isChecked());
diff --git a/konversation/src/osd_preferencesui.ui b/konversation/src/osd_preferencesui.ui
index f854584..2837552 100644
--- a/konversation/src/osd_preferencesui.ui
+++ b/konversation/src/osd_preferencesui.ui
@@ -29,7 +29,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>21</width>
<height>10</height>
@@ -263,7 +263,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>31</height>
@@ -340,7 +340,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
diff --git a/konversation/src/outputfilter.cpp b/konversation/src/outputfilter.cpp
index 47800f3..749e278 100644
--- a/konversation/src/outputfilter.cpp
+++ b/konversation/src/outputfilter.cpp
@@ -181,8 +181,8 @@ namespace Konversation
// someone didn't notice leading spaces
{
TQString testNickServ( inputLine.stripWhiteSpace() );
- if(testNickServ.tqstartsWith(commandChar+"nickserv", false)
- || testNickServ.tqstartsWith(commandChar+"ns", false))
+ if(testNickServ.startsWith(commandChar+"nickserv", false)
+ || testNickServ.startsWith(commandChar+"ns", false))
{
inputLine = testNickServ;
}
@@ -762,7 +762,7 @@ namespace Konversation
if (request == "PING")
{
- unsigned int time_t = TQDateTime::tqcurrentDateTime().toTime_t();
+ unsigned int time_t = TQDateTime::currentDateTime().toTime_t();
result.toServer = TQString("PRIVMSG %1 :\x01PING %2\x01").tqarg(recipient).tqarg(time_t);
result.output = i18n("Sending CTCP-%1 request to %2.").tqarg("PING").tqarg(recipient);
}
diff --git a/konversation/src/query.cpp b/konversation/src/query.cpp
index c4e1fb5..b04c703 100644
--- a/konversation/src/query.cpp
+++ b/konversation/src/query.cpp
@@ -57,10 +57,10 @@ Query::Query(TQWidget* parent, TQString _name) : ChatWindow(parent)
awayState=false;
TQHBox *box = new TQHBox(m_headerSplitter);
addresseeimage = new TQLabel(box, "query_image");
- addresseeimage->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ addresseeimage->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
addresseeimage->hide();
addresseelogoimage = new TQLabel(box, "query_logo_image");
- addresseelogoimage->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ addresseelogoimage->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
addresseelogoimage->hide();
queryHostmask=new Konversation::TopicLabel(box, "query_hostmask");
@@ -284,8 +284,8 @@ void Query::updateAppearance()
}
else
{
- fg=tqcolorGroup().foreground();
- bg=tqcolorGroup().base();
+ fg=colorGroup().foreground();
+ bg=colorGroup().base();
}
queryInput->unsetPalette();
@@ -365,7 +365,7 @@ void Query::showEvent(TQShowEvent*)
if(m_initialShow) {
m_initialShow = false;
TQValueList<int> sizes;
- sizes << queryHostmask->tqsizeHint().height() << (height() - queryHostmask->tqsizeHint().height());
+ sizes << queryHostmask->sizeHint().height() << (height() - queryHostmask->sizeHint().height());
m_headerSplitter->setSizes(sizes);
}
}
diff --git a/konversation/src/queuetunerbase.ui b/konversation/src/queuetunerbase.ui
index e81effd..6bb1c7a 100644
--- a/konversation/src/queuetunerbase.ui
+++ b/konversation/src/queuetunerbase.ui
@@ -54,7 +54,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>34</height>
@@ -96,7 +96,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>16</width>
<height>33</height>
diff --git a/konversation/src/quickbuttons_preferencesui.ui b/konversation/src/quickbuttons_preferencesui.ui
index 91d66a4..4e22b30 100644
--- a/konversation/src/quickbuttons_preferencesui.ui
+++ b/konversation/src/quickbuttons_preferencesui.ui
@@ -193,7 +193,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>230</height>
diff --git a/konversation/src/searchbar.cpp b/konversation/src/searchbar.cpp
index 38946c0..913e435 100644
--- a/konversation/src/searchbar.cpp
+++ b/konversation/src/searchbar.cpp
@@ -126,7 +126,7 @@ void SearchBar::slotFind()
m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false);
- settqStatus(TQPixmap(), "");
+ setStatus(TQPixmap(), "");
return;
}
@@ -140,7 +140,7 @@ void SearchBar::slotFindNext()
m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false);
- settqStatus(TQPixmap(), "");
+ setStatus(TQPixmap(), "");
return;
}
@@ -154,7 +154,7 @@ void SearchBar::slotFindPrevious()
m_searchEdit->unsetPalette();
m_findNextButton->setEnabled(false);
m_findPreviousButton->setEnabled(false);
- settqStatus(TQPixmap(), "");
+ setStatus(TQPixmap(), "");
return;
}
@@ -170,7 +170,7 @@ void SearchBar::setHasMatch(bool value)
m_findPreviousButton->setEnabled(value);
}
-void SearchBar::settqStatus(const TQPixmap& pix, const TQString& text)
+void SearchBar::setStatus(const TQPixmap& pix, const TQString& text)
{
if(!text.isEmpty()) {
m_statusPixLabel->show();
diff --git a/konversation/src/searchbar.h b/konversation/src/searchbar.h
index 8c3204c..6fa113f 100644
--- a/konversation/src/searchbar.h
+++ b/konversation/src/searchbar.h
@@ -34,7 +34,7 @@ class SearchBar : public SearchBarBase
~SearchBar();
void setHasMatch(bool value);
- void settqStatus(const TQPixmap& pix, const TQString& text);
+ void setStatus(const TQPixmap& pix, const TQString& text);
TQString pattern() const;
diff --git a/konversation/src/server.cpp b/konversation/src/server.cpp
index eb9c625..f6cf5ad 100644
--- a/konversation/src/server.cpp
+++ b/konversation/src/server.cpp
@@ -324,7 +324,7 @@ void Server::connectSignals()
connect(&m_inputFilter, TQT_SIGNAL(addToChannelList(const TQString&, int, const TQString& )),
this, TQT_SLOT(addToChannelList(const TQString&, int, const TQString& )));
- // tqStatus View
+ // Status View
connect(this, TQT_SIGNAL(serverOnline(bool)), getStatusView(), TQT_SLOT(serverOnline(bool)));
// Scripts
@@ -1882,10 +1882,10 @@ void Server::dccGetDone(DccTransfer* item)
if(showfile.startsWith("\"") && showfile.endsWith("\""))
showfile = showfile.mid(1, showfile.length() - 2);
- if(item->gettqStatus()==DccTransfer::Done)
+ if(item->getStatus()==DccTransfer::Done)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender",
"Download of \"%1\" from %2 finished.").tqarg(showfile, item->getPartnerNick()));
- else if(item->gettqStatus()==DccTransfer::Failed)
+ else if(item->getStatus()==DccTransfer::Failed)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of sender",
"Download of \"%1\" from %2 failed. Reason: %3.").tqarg(showfile,
item->getPartnerNick(), item->getStatusDetail()));
@@ -1901,16 +1901,16 @@ void Server::dccSendDone(DccTransfer* item)
if(showfile.startsWith("\"") && showfile.endsWith("\""))
showfile = showfile.mid(1, showfile.length() - 2);
- if(item->gettqStatus()==DccTransfer::Done)
+ if(item->getStatus()==DccTransfer::Done)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient",
"Upload of \"%1\" to %2 finished.").tqarg(showfile, item->getPartnerNick()));
- else if(item->gettqStatus()==DccTransfer::Failed)
+ else if(item->getStatus()==DccTransfer::Failed)
appendMessageToFrontmost(i18n("DCC"),i18n("%1 = file name, %2 = nickname of recipient",
"Upload of \"%1\" to %2 failed. Reason: %3.").tqarg(showfile, item->getPartnerNick(),
item->getStatusDetail()));
}
-void Server::dccStatusChanged(DccTransfer *item, int newtqStatus, int oldtqStatus)
+void Server::dccStatusChanged(DccTransfer *item, int newStatus, int oldStatus)
{
if(!item)
return;
@@ -1923,13 +1923,13 @@ void Server::dccStatusChanged(DccTransfer *item, int newtqStatus, int oldtqStatu
if ( item->getType() == DccTransfer::Send )
{
// when resuming, a message about the receiver's acceptance has been shown already, so suppress this message
- if ( newtqStatus == DccTransfer::Transferring && oldtqStatus == DccTransfer::WaitingRemote && !item->isResumed() )
+ if ( newStatus == DccTransfer::Transferring && oldStatus == DccTransfer::WaitingRemote && !item->isResumed() )
appendMessageToFrontmost( i18n( "DCC" ), i18n( "%1 = file name, %2 nickname of recipient",
"Sending \"%1\" to %2...").tqarg( showfile, item->getPartnerNick() ) );
}
else // type == Receive
{
- if ( newtqStatus == DccTransfer::Transferring && !item->isResumed() )
+ if ( newStatus == DccTransfer::Transferring && !item->isResumed() )
{
appendMessageToFrontmost( i18n( "DCC" ),
i18n( "%1 = file name, %2 = file size, %3 = nickname of sender", "Downloading \"%1\" (%2) from %3...")
@@ -2068,7 +2068,7 @@ void Server::updateChannelMode(const TQString &updater, const TQString &channelN
if (plus)
{
TQDateTime when;
- addBan(channelName, TQString("%1 %2 %3").tqarg(parameter).tqarg(updater).tqarg(TQDateTime::tqcurrentDateTime().toTime_t()));
+ addBan(channelName, TQString("%1 %2 %3").tqarg(parameter).tqarg(updater).tqarg(TQDateTime::currentDateTime().toTime_t()));
} else {
removeBan(channelName, parameter);
}
@@ -3226,7 +3226,7 @@ TQString Server::awayTime() const
if (m_away)
{
- int diff = TQDateTime::tqcurrentDateTime().toTime_t() - m_awayTime;
+ int diff = TQDateTime::currentDateTime().toTime_t() - m_awayTime;
int num = diff / 3600;
if (num < 10)
@@ -3254,7 +3254,7 @@ TQString Server::awayTime() const
void Server::startAwayTimer()
{
- m_awayTime = TQDateTime::tqcurrentDateTime().toTime_t();
+ m_awayTime = TQDateTime::currentDateTime().toTime_t();
}
KABC::Addressee Server::getOfflineNickAddressee(TQString& nickname)
diff --git a/konversation/src/server.h b/konversation/src/server.h
index 959319c..ff8b0d7 100644
--- a/konversation/src/server.h
+++ b/konversation/src/server.h
@@ -502,7 +502,7 @@ void resetNickSelection();
void resumeDccSendTransfer(const TQString& sourceNick,const TQStringList& dccArguments);
void dccGetDone(DccTransfer* item);
void dccSendDone(DccTransfer* item);
- void dccStatusChanged(DccTransfer* item, int newtqStatus, int oldtqStatus);
+ void dccStatusChanged(DccTransfer* item, int newStatus, int oldStatus);
void scriptNotFound(const TQString& name);
void scriptExecutionError(const TQString& name);
void userhost(const TQString& nick,const TQString& hostmask,bool away,bool ircOp);
diff --git a/konversation/src/servergroupdialogui.ui b/konversation/src/servergroupdialogui.ui
index 4ef4866..933e019 100644
--- a/konversation/src/servergroupdialogui.ui
+++ b/konversation/src/servergroupdialogui.ui
@@ -185,7 +185,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>0</width>
<height>20</height>
@@ -264,7 +264,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>255</width>
<height>20</height>
diff --git a/konversation/src/serverlistview.cpp b/konversation/src/serverlistview.cpp
index 0035c53..be33e43 100644
--- a/konversation/src/serverlistview.cpp
+++ b/konversation/src/serverlistview.cpp
@@ -66,7 +66,7 @@ void ServerListView::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQLis
else
{
// Get the closest item before us ('atpos' or the one above, if any)
- if (p.y() - tqitemRect(atpos).topLeft().y() < (atpos->height()/2))
+ if (p.y() - itemRect(atpos).topLeft().y() < (atpos->height()/2))
above = atpos->itemAbove();
else
above = atpos;
diff --git a/konversation/src/statuspanel.cpp b/konversation/src/statuspanel.cpp
index 9615c1d..e2ff9f1 100644
--- a/konversation/src/statuspanel.cpp
+++ b/konversation/src/statuspanel.cpp
@@ -32,7 +32,7 @@
StatusPanel::StatusPanel(TQWidget* parent) : ChatWindow(parent)
{
- setType(ChatWindow::tqStatus);
+ setType(ChatWindow::Status);
setChannelEncodingSupported(true);
@@ -164,8 +164,8 @@ void StatusPanel::updateAppearance()
}
else
{
- fg=tqcolorGroup().foreground();
- bg=tqcolorGroup().base();
+ fg=colorGroup().foreground();
+ bg=colorGroup().base();
}
statusInput->unsetPalette();
diff --git a/konversation/src/tabnotifications_preferences.ui b/konversation/src/tabnotifications_preferences.ui
index aaf68ac..3b62feb 100644
--- a/konversation/src/tabnotifications_preferences.ui
+++ b/konversation/src/tabnotifications_preferences.ui
@@ -73,7 +73,7 @@
<bool>true</bool>
</property>
<property name="whatsThis" stdset="0">
- <string>Application events occur in Konsole tabs, the DCC tqStatus tab and other application tabs not used directly for chatting.</string>
+ <string>Application events occur in Konsole tabs, the DCC Status tab and other application tabs not used directly for chatting.</string>
</property>
</widget>
<spacer row="5" column="3">
@@ -86,7 +86,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
@@ -122,7 +122,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
@@ -154,7 +154,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>60</width>
<height>21</height>
@@ -208,7 +208,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -225,7 +225,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>21</height>
@@ -283,7 +283,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>50</width>
<height>20</height>
@@ -337,7 +337,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>21</width>
<height>60</height>
diff --git a/konversation/src/tabs_preferencesui.ui b/konversation/src/tabs_preferencesui.ui
index 9e8dbbe..73b914c 100644
--- a/konversation/src/tabs_preferencesui.ui
+++ b/konversation/src/tabs_preferencesui.ui
@@ -83,7 +83,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>111</width>
<height>20</height>
@@ -178,7 +178,7 @@ the Free Software Foundation; either version 2 of the License, or
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>100</height>
diff --git a/konversation/src/theme_preferencesui.ui b/konversation/src/theme_preferencesui.ui
index bf7d7ab..44c01e8 100644
--- a/konversation/src/theme_preferencesui.ui
+++ b/konversation/src/theme_preferencesui.ui
@@ -66,7 +66,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>131</width>
<height>20</height>
@@ -77,7 +77,7 @@
<property name="name">
<cstring>frame3_2</cstring>
</property>
- <property name="tqminimumSize">
+ <property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
diff --git a/konversation/src/topiclabel.cpp b/konversation/src/topiclabel.cpp
index e04a1d0..0fdbe18 100644
--- a/konversation/src/topiclabel.cpp
+++ b/konversation/src/topiclabel.cpp
@@ -60,13 +60,13 @@ namespace Konversation
{
}
- TQSize TopicLabel::tqminimumSizeHint() const
+ TQSize TopicLabel::minimumSizeHint() const
{
int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent();
return TQSize(0, minHeight);
}
- TQSize TopicLabel::tqsizeHint() const
+ TQSize TopicLabel::sizeHint() const
{
int minHeight = fontMetrics().lineSpacing() + fontMetrics().descent();
return TQSize(0, minHeight);
diff --git a/konversation/src/topiclabel.h b/konversation/src/topiclabel.h
index 4e22dbc..0a649b6 100644
--- a/konversation/src/topiclabel.h
+++ b/konversation/src/topiclabel.h
@@ -33,8 +33,8 @@ namespace Konversation
explicit TopicLabel(TQWidget *parent = 0, const char *name = 0);
~TopicLabel();
- TQSize tqminimumSizeHint() const;
- TQSize tqsizeHint() const;
+ TQSize minimumSizeHint() const;
+ TQSize sizeHint() const;
void setServer(Server* server);
enum PopupIDs { Copy,CopyUrl,SelectAll,Bookmark };
diff --git a/konversation/src/viewcontainer.cpp b/konversation/src/viewcontainer.cpp
index 89be010..04d6635 100644
--- a/konversation/src/viewcontainer.cpp
+++ b/konversation/src/viewcontainer.cpp
@@ -157,7 +157,7 @@ void ViewContainer::setupTabWidget()
KPushButton* closeBtn = new KPushButton(m_tabWidget);
closeBtn->setPixmap(KGlobal::iconLoader()->loadIcon("tab_remove", KIcon::Small));
closeBtn->resize(22, 22);
- closeBtn->tqsetSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
+ closeBtn->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
m_tabWidget->setCornerWidget(closeBtn);
connect(closeBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(closeCurrentView()));
@@ -220,7 +220,7 @@ void ViewContainer::setupViewTree()
{
ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i));
- if (view->getType() == ChatWindow::tqStatus)
+ if (view->getType() == ChatWindow::Status)
{
if (view == m_frontView)
m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true);
@@ -233,7 +233,7 @@ void ViewContainer::setupViewTree()
{
ChatWindow* view = static_cast<ChatWindow*>(m_tabWidget->page(i));
- if (!view->getType() == ChatWindow::tqStatus)
+ if (!view->getType() == ChatWindow::Status)
{
if (view == m_frontView)
m_viewTree->addView(view->getName(), view, m_tabWidget->tabIconSet(view), true);
@@ -426,7 +426,7 @@ void ViewContainer::updateViewActions(int index)
if (action) action->setEnabled(index < (m_tabWidget->count() - 1));
}
- if (server && (viewType == ChatWindow::tqStatus || server == m_frontServer))
+ if (server && (viewType == ChatWindow::Status || server == m_frontServer))
{
action = actionCollection()->action("reconnect_server");
if (action) action->setEnabled(true);
@@ -457,7 +457,7 @@ void ViewContainer::updateViewActions(int index)
if (notifyAction)
{
notifyAction->setEnabled(viewType == ChatWindow::Channel || viewType == ChatWindow::Query ||
- viewType == ChatWindow::tqStatus || viewType == ChatWindow::Konsole ||
+ viewType == ChatWindow::Status || viewType == ChatWindow::Konsole ||
viewType == ChatWindow::DccTransferPanel || viewType == ChatWindow::RawLog);
notifyAction->setChecked(view->notificationsEnabled());
}
@@ -702,7 +702,7 @@ void ViewContainer::updateFrontView()
{
case ChatWindow::Channel:
case ChatWindow::Query:
- case ChatWindow::tqStatus:
+ case ChatWindow::Status:
case ChatWindow::ChannelList:
case ChatWindow::RawLog:
emit setStatusBarLagLabelShown(true);
@@ -729,7 +729,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
if (serverGroup)
{
- if (view->getType() == ChatWindow::tqStatus && view->getServer()->getServerGroup() == serverGroup)
+ if (view->getType() == ChatWindow::Status && view->getServer()->getServerGroup() == serverGroup)
{
TQString label = view->getServer()->getDisplayName();
@@ -762,7 +762,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
if (!Preferences::tabNotificationsText())
- m_viewTree->setViewColor(view, m_window->tqcolorGroup().foreground());
+ m_viewTree->setViewColor(view, m_window->colorGroup().foreground());
}
else if (m_tabWidget)
{
@@ -773,7 +773,7 @@ void ViewContainer::updateViews(const Konversation::ServerGroupSettings* serverG
m_tabWidget->setTabIconSet(view, images->getCloseIcon());
if (!Preferences::tabNotificationsText())
- m_tabWidget->setTabColor(view, m_window->tqcolorGroup().foreground());
+ m_tabWidget->setTabColor(view, m_window->colorGroup().foreground());
}
if (Preferences::tabNotificationsLeds() || Preferences::tabNotificationsText())
@@ -1040,7 +1040,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
m_viewTree->setViewIcon(view, images->getPrivateLed(false));
break;
- case ChatWindow::tqStatus:
+ case ChatWindow::Status:
m_viewTree->setViewIcon(view, images->getServerLed(false));
break;
@@ -1051,7 +1051,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
}
TQColor textColor = (Preferences::inputFieldsBackgroundColor()
- ? Preferences::color(Preferences::ChannelMessage) : m_window->tqcolorGroup().foreground());
+ ? Preferences::color(Preferences::ChannelMessage) : m_window->colorGroup().foreground());
if (view->getType() == ChatWindow::Channel)
{
@@ -1083,7 +1083,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
m_tabWidget->setTabIconSet(view, images->getPrivateLed(false));
break;
- case ChatWindow::tqStatus:
+ case ChatWindow::Status:
m_tabWidget->setTabIconSet(view, images->getServerLed(false));
break;
@@ -1093,7 +1093,7 @@ void ViewContainer::unsetViewNotification(ChatWindow* view)
}
}
- TQColor textColor = m_window->tqcolorGroup().foreground();
+ TQColor textColor = m_window->colorGroup().foreground();
if (view->getType() == ChatWindow::Channel)
{
@@ -1196,7 +1196,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
- if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
+ if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer())
{
for (int index = sindex + 1; index < m_tabWidget->count(); index++)
{
@@ -1226,7 +1226,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
- if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
+ if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer())
{
placement = sindex + 1;
break;
@@ -1245,7 +1245,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
{
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
- if (tmp_ChatWindow->getType() == ChatWindow::tqStatus && tmp_ChatWindow->getServer() == view->getServer())
+ if (tmp_ChatWindow->getType() == ChatWindow::Status && tmp_ChatWindow->getServer() == view->getServer())
{
for (int index = sindex + 1; index < m_tabWidget->count(); index++)
{
@@ -1276,7 +1276,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
tmp_ChatWindow = static_cast<ChatWindow*>(m_tabWidget->page(sindex));
wtype = tmp_ChatWindow->getType();
- if (wtype != ChatWindow::tqStatus && wtype != ChatWindow::Channel
+ if (wtype != ChatWindow::Status && wtype != ChatWindow::Channel
&& wtype != ChatWindow::RawLog && wtype != ChatWindow::Query
&& wtype != ChatWindow::DccChat && wtype != ChatWindow::ChannelList)
{
@@ -1286,7 +1286,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
}
break;
- case ChatWindow::tqStatus:
+ case ChatWindow::Status:
if (Preferences::tabNotificationsLeds())
iconSet = images->getServerLed(false);
else if (Preferences::closeButtons())
@@ -1299,7 +1299,7 @@ void ViewContainer::addView(ChatWindow* view, const TQString& label, bool weinit
tmp_ChatWindow = static_cast<ChatWindow *>(m_tabWidget->page(sindex));
if (tmp_ChatWindow->getType() != ChatWindow::Channel
- && tmp_ChatWindow->getType() != ChatWindow::tqStatus
+ && tmp_ChatWindow->getType() != ChatWindow::Status
&& tmp_ChatWindow->getType() != ChatWindow::RawLog
&& tmp_ChatWindow->getType() != ChatWindow::Query
&& tmp_ChatWindow->getType() != ChatWindow::DccChat)
@@ -1624,7 +1624,7 @@ void ViewContainer::updateViewEncoding(ChatWindow* view)
if (codecAction)
{
- if(viewType == ChatWindow::Channel || viewType == ChatWindow::Query || viewType == ChatWindow::tqStatus)
+ if(viewType == ChatWindow::Channel || viewType == ChatWindow::Query || viewType == ChatWindow::Status)
{
codecAction->setEnabled(view->isChannelEncodingSupported());
TQString encoding = view->getChannelEncoding();
@@ -1682,7 +1682,7 @@ void ViewContainer::showViewContextMenu(TQWidget* tab, const TQPoint& pos)
}
}
- if (viewType == ChatWindow::tqStatus)
+ if (viewType == ChatWindow::Status)
{
TQPtrList<KAction> serverActions;
KAction* action = actionCollection()->action("disconnect_server");
@@ -1825,7 +1825,7 @@ void ViewContainer::appendToFrontmost(const TQString& type,const TQString& messa
}
// This might happen if canBeFrontView() is false for active ChatWindow
- // and the view does not belong to any server (e.g. DCC tqStatus View).
+ // and the view does not belong to any server (e.g. DCC Status View).
// Discard message in this case.
if (!serverView) return;
@@ -1957,7 +1957,7 @@ void ViewContainer::openLogFile()
ChatWindow* view=static_cast<ChatWindow*>(m_frontView);
ChatWindow::WindowType viewType=view->getType();
if (viewType==ChatWindow::Channel || viewType==ChatWindow::Query ||
- viewType==ChatWindow::tqStatus || viewType==ChatWindow::DccChat)
+ viewType==ChatWindow::Status || viewType==ChatWindow::DccChat)
{
openLogFile(view->getName(), view->logFileName());
}
diff --git a/konversation/src/viewtree.cpp b/konversation/src/viewtree.cpp
index d62bee4..67efaf5 100644
--- a/konversation/src/viewtree.cpp
+++ b/konversation/src/viewtree.cpp
@@ -56,7 +56,7 @@ void ViewTree::ToolTip::maybeTip (const TQPoint &pos)
ViewTreeItem* view = static_cast<ViewTreeItem*>(viewTree->itemAt(pos));
- if (view && view->isTruncated()) tip(viewTree->tqitemRect(view), view->getName());
+ if (view && view->isTruncated()) tip(viewTree->itemRect(view), view->getName());
}
@@ -503,7 +503,7 @@ void ViewTree::enableCloseButton()
bool ViewTree::isAboveIcon(TQPoint point, ViewTreeItem* item)
{
- TQPoint inItem = point - tqitemRect(item).topLeft();
+ TQPoint inItem = point - itemRect(item).topLeft();
int MARGIN = 2;
int LED_ICON_SIZE = 14;
@@ -748,7 +748,7 @@ void ViewTree::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListViewI
else
{
// Get the closest item before us ('atpos' or the one above, if any).
- if (p.y() - tqitemRect(atpos).topLeft().y() < (atpos->height()/2))
+ if (p.y() - itemRect(atpos).topLeft().y() < (atpos->height()/2))
above = atpos->itemAbove();
else
above = atpos;
@@ -913,7 +913,7 @@ ViewTreeItem* ViewTree::getParentItemForView(ChatWindow* view)
while (item)
{
- if (item->getViewType() == ChatWindow::tqStatus
+ if (item->getViewType() == ChatWindow::Status
&& item->getView()
&& item->getView()->getServer() == server)
{
diff --git a/konversation/src/viewtreeitem.cpp b/konversation/src/viewtreeitem.cpp
index 1d18a8d..f831fbb 100644
--- a/konversation/src/viewtreeitem.cpp
+++ b/konversation/src/viewtreeitem.cpp
@@ -246,7 +246,7 @@ bool ViewTreeItem::sortLast() const
{
if (!m_isSeparator)
{
- if (getViewType() == ChatWindow::tqStatus
+ if (getViewType() == ChatWindow::Status
|| getViewType() == ChatWindow::Channel
|| getViewType() == ChatWindow::Query
|| getViewType() == ChatWindow::RawLog
diff --git a/konversation/src/watchednicknames_preferencesui.ui b/konversation/src/watchednicknames_preferencesui.ui
index 6fbcc36..6f9860b 100644
--- a/konversation/src/watchednicknames_preferencesui.ui
+++ b/konversation/src/watchednicknames_preferencesui.ui
@@ -106,7 +106,7 @@ command is placed in the <b>Input Line</b> on the server window.<
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>150</width>
<height>20</height>
@@ -333,7 +333,7 @@ When the nickname watcher is turned on, you will be notified when the nicknames
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="tqsizeHint">
+ <property name="sizeHint">
<size>
<width>20</width>
<height>160</height>
|