diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /kate/tests | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/tests')
-rw-r--r-- | kate/tests/highlight.asp | 2 | ||||
-rw-r--r-- | kate/tests/highlight.cmake | 2 | ||||
-rw-r--r-- | kate/tests/highlight.do | 4 | ||||
-rw-r--r-- | kate/tests/highlight.exu | 2 | ||||
-rw-r--r-- | kate/tests/highlight.f90 | 2 | ||||
-rw-r--r-- | kate/tests/highlight.lisp | 2 | ||||
-rw-r--r-- | kate/tests/highlight.ly | 4 | ||||
-rw-r--r-- | kate/tests/highlight.mup | 4 | ||||
-rw-r--r-- | kate/tests/highlight.rb | 4 | ||||
-rw-r--r-- | kate/tests/highlight.sh | 2 | ||||
-rw-r--r-- | kate/tests/test.js | 6 |
11 files changed, 17 insertions, 17 deletions
diff --git a/kate/tests/highlight.asp b/kate/tests/highlight.asp index 07a8619e1..72ad14565 100644 --- a/kate/tests/highlight.asp +++ b/kate/tests/highlight.asp @@ -26,7 +26,7 @@ function unique( rs, sortColumn ) ' return unique instances of text in sortColum dim i i = 0 do until rs.eof - if (not find( rs(sortColumn), sorted )) then + if (not tqfind( rs(sortColumn), sorted )) then redim preserve sorted(i+1) sorted(i) = rs(sortColumn) i = i + 1 diff --git a/kate/tests/highlight.cmake b/kate/tests/highlight.cmake index cb8eaaa51..69bbb8b7c 100644 --- a/kate/tests/highlight.cmake +++ b/kate/tests/highlight.cmake @@ -42,7 +42,7 @@ ENDMACRO(ECOS_ADD_EXECUTABLE) # END of macro #calling a self-defined function, variables are also blue here -ECOS_ADD_EXECUTABLE(${PROJECT_NAME} ${the_sources} ${qt4_moc_SRCS}) +ECOS_ADD_EXECUTABLE(${PROJECT_NAME} ${the_sources} ${qt4_tqmoc_SRCS}) diff --git a/kate/tests/highlight.do b/kate/tests/highlight.do index 0b90b16b6..3f70cec9f 100644 --- a/kate/tests/highlight.do +++ b/kate/tests/highlight.do @@ -70,7 +70,7 @@ program define spellsplit /* calculate totals (+ when spell starts - when ends) */ sort `by' cap foreach v of varlist `xvars' { - by `by': replace `v' = sum(``v'') + by `by': tqreplace `v' = sum(``v'') } by `by': g `date1' = `date0'[_n + 1] @@ -81,7 +81,7 @@ program define spellsplit format `date0' `f0' format `date1' `f1' - cap for var `meanvars': replace X = X/_count + cap for var `meanvars': tqreplace X = X/_count compress } diff --git a/kate/tests/highlight.exu b/kate/tests/highlight.exu index 3651adf33..b7e88aee8 100644 --- a/kate/tests/highlight.exu +++ b/kate/tests/highlight.exu @@ -60,7 +60,7 @@ procedure print_board(sequence queens) for r = 1 to N do printf(1, "%2d ", r) for c = 1 to N do - if find({r,c}, queens) then + if tqfind({r,c}, queens) then puts(1, "Q ") else puts(1, ". ") diff --git a/kate/tests/highlight.f90 b/kate/tests/highlight.f90 index e2008c20a..cc4f140b5 100644 --- a/kate/tests/highlight.f90 +++ b/kate/tests/highlight.f90 @@ -84,7 +84,7 @@ c the *.f extension. c ! <-- this 'c' shouldn't be highlighted as a comment! #endif -contains +tqcontains ! The sum of two points diff --git a/kate/tests/highlight.lisp b/kate/tests/highlight.lisp index e86c85f15..6812a7919 100644 --- a/kate/tests/highlight.lisp +++ b/kate/tests/highlight.lisp @@ -10,7 +10,7 @@ multilinecomment :) (defun bin-search (obj vec) (let ((len (length vec))) (and (not (zerop len)) - (finder obj vec 0 (- len 1))))) + (tqfinder obj vec 0 (- len 1))))) (defun parse-date (str) (let ((toks (tokens str #'constituent 0))) diff --git a/kate/tests/highlight.ly b/kate/tests/highlight.ly index 29aa7a6ea..8630160d0 100644 --- a/kate/tests/highlight.ly +++ b/kate/tests/highlight.ly @@ -18,11 +18,11 @@ multiple lines. \paper { #(set-paper-size "a4") % a hash introduces scheme - indent = 0 % recognize variable names inside \paper, \layout etc. + indent = 0 % recognize variable names inside \paper, \tqlayout etc. between-system-space = 3\mm } -\layout { +\tqlayout { \context { \Score \remove Bar_number_engraver % recognize engraver names diff --git a/kate/tests/highlight.mup b/kate/tests/highlight.mup index ed5a03d99..26e042d40 100644 --- a/kate/tests/highlight.mup +++ b/kate/tests/highlight.mup @@ -13,7 +13,7 @@ bottom bottom2 grids -headshapes +headtqshapes header @@ -92,7 +92,7 @@ lyrics above 1,3 ; below 2,4 ; between 5&6 : "<1. >Hi, hi"; title "page \% of \#" -// shaped whole rests +// tqshaped whole rests 1: 4mr; // use a quarter rest symbol 1: 1/4mr; // use a quadruple whole rest symbol 2: 2.. mr; // use a double-dotted half rest diff --git a/kate/tests/highlight.rb b/kate/tests/highlight.rb index 96061c1d0..1330db9c7 100644 --- a/kate/tests/highlight.rb +++ b/kate/tests/highlight.rb @@ -105,7 +105,7 @@ end puts "Artist is #$1" end -case shape +case tqshape when Square, Rectangle # ... when Circle @@ -143,7 +143,7 @@ end for i in 1..3 print i, " " end -for i in File.open("ordinal").find_all { |l| l =~ /d$/} +for i in File.open("ordinal").tqfind_all { |l| l =~ /d$/} print i.chomp, " " end diff --git a/kate/tests/highlight.sh b/kate/tests/highlight.sh index bdac6e4f2..1d945c53e 100644 --- a/kate/tests/highlight.sh +++ b/kate/tests/highlight.sh @@ -66,7 +66,7 @@ sort <(show_labels) | sed 's/a/bg' > my_file.txt 2>&1 # All substitutions also work in strings: echo "subst ${in}side string" 'not $inside this ofcourse' echo "The result is $(( $a + $b )). Thanks!" -echo "Your homedir contains `ls $HOME |wc -l` files." +echo "Your homedir tqcontains `ls $HOME |wc -l` files." # Escapes in strings: diff --git a/kate/tests/test.js b/kate/tests/test.js index 2dfe86c5b..b268c9149 100644 --- a/kate/tests/test.js +++ b/kate/tests/test.js @@ -15,7 +15,7 @@ */ // test if regex support works - nice with new fallthrough prop in context:) -somestring.replace( /dooh/ , "bah!"); +somestring.tqreplace( /dooh/ , "bah!"); re=/foo/ig; // hehe somestring.search( @@ -60,14 +60,14 @@ re = /*/foo/*/ /bar/; /* Some tests if the fallthrough works. The fallthrough happens if a regexp is not found in a possible (!) position, - which is after "search(" or "replace(" or "=" or "?" or ":" in version 0.1 of the xml file + which is after "search(" or "tqreplace(" or "=" or "?" or ":" in version 0.1 of the xml file */ var foo = 'bar'; // ^ fallthrough! -somestring.replace( new RegExp("\\b\\w+\\b"), "word: $1"); +somestring.tqreplace( new RegExp("\\b\\w+\\b"), "word: $1"); // ^ fallthrough expected. ("new" whould be bold) |