From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:44:01 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/docs/examples/html2text/test.htm | 10 +++++----- kjsembed/docs/examples/imageinfo/example.html | 2 +- kjsembed/docs/examples/imageinfo/example1.htm | 2 +- kjsembed/docs/examples/imageinfo/thumbs.html | 2 +- kjsembed/docs/examples/index.html | 12 ++++++------ 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'kjsembed/docs/examples') diff --git a/kjsembed/docs/examples/html2text/test.htm b/kjsembed/docs/examples/html2text/test.htm index 457327d0..2a060c2d 100644 --- a/kjsembed/docs/examples/html2text/test.htm +++ b/kjsembed/docs/examples/html2text/test.htm @@ -53,7 +53,7 @@ pre { <li>Scripts can access the properties and slots of QObjects as if they were normal Javascript properties and methods.</li> <li>Scripts can load dialogs and widgets created with Qt Designer.</li> - <li>Scripts can create instances of anu QWidget subclass supported by QWidgetFactory.</li> + <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li> <li>Making your own QObjects/QWidgets available for scripting is one-liner.</li> <li>Scripts can traverse the widget tree, so your entire application can be made scriptable without explicitly binding every object.</li> @@ -87,11 +87,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget) kjs> console.childCount() 4 kjs> console.childAt(1) -CmdEdit (QComboBox) +CmdEdit (TQComboBox) kjs> console.childAt(2) -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child(&quot;RunButton&quot;) -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child(&quot;RunButton&quot;).text = &quot;Go!&quot; Go! kjs> console.caption = &quot;Different Title&quot; @@ -145,7 +145,7 @@ print( cmd ); <p class="precaption">Listing 1: A Script That Displays the Grep Dialog</p> <p>In order to find out what the user asked us to search for we need to extract the contents of the various fields in our dialog. We know that the field for - entering the text to be searched for is a QLineEdit called 'search_edit', so + entering the text to be searched for is a TQLineEdit called 'search_edit', so we can use the child() method to get hold of it (this method searches through the children of an object until it finds one with a matching name). Once we've found the right object getting hold of the text is easy because all QLineEdits diff --git a/kjsembed/docs/examples/imageinfo/example.html b/kjsembed/docs/examples/imageinfo/example.html index c5b5fd69..82af5e0b 100644 --- a/kjsembed/docs/examples/imageinfo/example.html +++ b/kjsembed/docs/examples/imageinfo/example.html @@ -10,7 +10,7 @@ example1.png (848x686)

This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using QImage::smoothScale() +see the script automatically creates thumbnails (using TQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup like this, and even links. diff --git a/kjsembed/docs/examples/imageinfo/example1.htm b/kjsembed/docs/examples/imageinfo/example1.htm index b18ff23c..bbe9bb0b 100644 --- a/kjsembed/docs/examples/imageinfo/example1.htm +++ b/kjsembed/docs/examples/imageinfo/example1.htm @@ -1,5 +1,5 @@ This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using QImage::smoothScale() +see the script automatically creates thumbnails (using TQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup like this, and even links. diff --git a/kjsembed/docs/examples/imageinfo/thumbs.html b/kjsembed/docs/examples/imageinfo/thumbs.html index 674dcfe5..663246a0 100644 --- a/kjsembed/docs/examples/imageinfo/thumbs.html +++ b/kjsembed/docs/examples/imageinfo/thumbs.html @@ -10,7 +10,7 @@ example1.png (848x686)

This image shows the results of running the imagegallery script. As you can -see the script automatically creates thumbnails (using QImage::smoothScale() +see the script automatically creates thumbnails (using TQImage::smoothScale() for quality) and includes image descriptions if present. The descriptions can include HTML markup like this, and even links. diff --git a/kjsembed/docs/examples/index.html b/kjsembed/docs/examples/index.html index bed4b787..4b48cc31 100644 --- a/kjsembed/docs/examples/index.html +++ b/kjsembed/docs/examples/index.html @@ -75,21 +75,21 @@ facilities. Two examples that create a graphical tree. One from a JS data structure, the other from the widget tree of a ui file. qobject-dom -Illustrates the QObject DOM API. +Illustrates the TQObject DOM API. connect-cpp Connects a signal to slot. connect Connects signals of various types to JS methods. imageviewer -Illustrates the use of QPixmap values. +Illustrates the use of TQPixmap values. netaccess Illustrates the bindings to KIO::NetAccess. listview Creates a simple KListView. frame -Shows off QFrame support and the use of enums. +Shows off TQFrame support and the use of enums. timer -Creates a flashing LED using QTimer. +Creates a flashing LED using TQTimer. Actions A simple KAction demo. Built-In Messages @@ -108,8 +108,8 @@ from a JS data structure, the other from the widget tree of a ui file. Opaque types. Standard Icons Loading standard icons. -QComboBox -A simple demo of QComboBox. +TQComboBox +A simple demo of TQComboBox. Embedding several KParts Shows how to embed multiple parts in the same script. Writing data directly to a KPart -- cgit v1.2.1