diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kommander/examples/tutorial | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/examples/tutorial')
-rw-r--r-- | kommander/examples/tutorial/append.kmdr | 8 | ||||
-rw-r--r-- | kommander/examples/tutorial/arrays.kmdr | 10 | ||||
-rw-r--r-- | kommander/examples/tutorial/calc.kmdr | 28 | ||||
-rw-r--r-- | kommander/examples/tutorial/cmdline.kmdr | 6 | ||||
-rw-r--r-- | kommander/examples/tutorial/dcop.kmdr | 8 | ||||
-rw-r--r-- | kommander/examples/tutorial/dialogs.kmdr | 4 | ||||
-rw-r--r-- | kommander/examples/tutorial/globals.kmdr | 4 | ||||
-rw-r--r-- | kommander/examples/tutorial/initialize.kmdr | 12 | ||||
-rw-r--r-- | kommander/examples/tutorial/loop.kmdr | 6 | ||||
-rw-r--r-- | kommander/examples/tutorial/picview.kmdr | 10 | ||||
-rw-r--r-- | kommander/examples/tutorial/progressbar.kmdr | 10 | ||||
-rw-r--r-- | kommander/examples/tutorial/settings.kmdr | 16 | ||||
-rw-r--r-- | kommander/examples/tutorial/slots.kmdr | 16 | ||||
-rw-r--r-- | kommander/examples/tutorial/statusbar.kmdr | 2 | ||||
-rw-r--r-- | kommander/examples/tutorial/strings.kmdr | 18 | ||||
-rw-r--r-- | kommander/examples/tutorial/table.kmdr | 8 | ||||
-rw-r--r-- | kommander/examples/tutorial/tree.kmdr | 10 | ||||
-rw-r--r-- | kommander/examples/tutorial/widgets.kmdr | 8 |
18 files changed, 92 insertions, 92 deletions
diff --git a/kommander/examples/tutorial/append.kmdr b/kommander/examples/tutorial/append.kmdr index fe22a4c3..51b24cde 100644 --- a/kommander/examples/tutorial/append.kmdr +++ b/kommander/examples/tutorial/append.kmdr @@ -40,7 +40,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -64,7 +64,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -100,7 +100,7 @@ dcop @dcopid KommanderIf changeWidgetText TextEdit1 "$TEXT" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -111,5 +111,5 @@ dcop @dcopid KommanderIf changeWidgetText TextEdit1 "$TEXT" </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/arrays.kmdr b/kommander/examples/tutorial/arrays.kmdr index dd4b18c6..b884affc 100644 --- a/kommander/examples/tutorial/arrays.kmdr +++ b/kommander/examples/tutorial/arrays.kmdr @@ -36,7 +36,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel" row="0" column="0"> + <widget class=TQLABEL_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>TextLabel2</cstring> </property> @@ -93,7 +93,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="3" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="3" column="0"> <property name="name"> <cstring>Layout4</cstring> </property> @@ -117,7 +117,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -181,7 +181,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -200,5 +200,5 @@ <slot>populate()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/calc.kmdr b/kommander/examples/tutorial/calc.kmdr index 5e0082f4..21bddb4e 100644 --- a/kommander/examples/tutorial/calc.kmdr +++ b/kommander/examples/tutorial/calc.kmdr @@ -32,7 +32,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="0" column="1"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="1"> <property name="name"> <cstring>Layout7</cstring> </property> @@ -46,7 +46,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -66,13 +66,13 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>200</width> <height>0</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>250</width> <height>32767</height> @@ -91,7 +91,7 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>250</width> <height>32767</height> @@ -124,7 +124,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout4</cstring> </property> @@ -138,7 +138,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel" row="2" column="0"> + <widget class=TQLABEL_OBJECT_NAME_STRING row="2" column="0"> <property name="name"> <cstring>TextLabel2</cstring> </property> @@ -146,7 +146,7 @@ <string>Expression:</string> </property> </widget> - <widget class="QLayoutWidget" row="4" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="4" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -170,7 +170,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -194,7 +194,7 @@ <stringlist> <string>@ListBox1.insertItem(@expr(@LineEdit1.text), -1) @LineEdit1.clear -@LineEdit2.setText("Sum: @expr(@String.replace(@ListBox1.text, "\n", "+"))") +@LineEdit2.setText("Sum: @expr(@String.tqreplace(@ListBox1.text, "\n", "+"))") </string> </stringlist> </property> @@ -209,7 +209,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -233,7 +233,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>0</width> <height>91</height> @@ -250,7 +250,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>0</width> <height>91</height> @@ -267,5 +267,5 @@ <tabstop>ExecButton2</tabstop> <tabstop>ListBox1</tabstop> </tabstops> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/cmdline.kmdr b/kommander/examples/tutorial/cmdline.kmdr index 0db801d2..6d0cbbe1 100644 --- a/kommander/examples/tutorial/cmdline.kmdr +++ b/kommander/examples/tutorial/cmdline.kmdr @@ -50,7 +50,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>149</width> <height>0</height> @@ -95,7 +95,7 @@ fi</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>148</width> <height>0</height> @@ -104,5 +104,5 @@ fi</string> </spacer> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/dcop.kmdr b/kommander/examples/tutorial/dcop.kmdr index 9ceae259..739bdae6 100644 --- a/kommander/examples/tutorial/dcop.kmdr +++ b/kommander/examples/tutorial/dcop.kmdr @@ -35,7 +35,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -59,7 +59,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -124,7 +124,7 @@ dcop kmail KMailIface checkAccount @AccountListBox</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -135,5 +135,5 @@ dcop kmail KMailIface checkAccount @AccountListBox</string> </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/dialogs.kmdr b/kommander/examples/tutorial/dialogs.kmdr index 62c97bc0..421f0607 100644 --- a/kommander/examples/tutorial/dialogs.kmdr +++ b/kommander/examples/tutorial/dialogs.kmdr @@ -85,7 +85,7 @@ ListBox1.setText(a) </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -194,5 +194,5 @@ ListBox1.setText(a) </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/globals.kmdr b/kommander/examples/tutorial/globals.kmdr index 71cfad17..131c3a2a 100644 --- a/kommander/examples/tutorial/globals.kmdr +++ b/kommander/examples/tutorial/globals.kmdr @@ -32,7 +32,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -92,5 +92,5 @@ </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/initialize.kmdr b/kommander/examples/tutorial/initialize.kmdr index 16ed360d..5ca6bbc9 100644 --- a/kommander/examples/tutorial/initialize.kmdr +++ b/kommander/examples/tutorial/initialize.kmdr @@ -35,7 +35,7 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="2" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -59,7 +59,7 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -89,7 +89,7 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -98,7 +98,7 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" </spacer> </hbox> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class=TQLABEL_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>OpenLabel</cstring> </property> @@ -106,7 +106,7 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" <string>Opened:</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class=TQLABEL_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>CloseLabel</cstring> </property> @@ -116,5 +116,5 @@ dcop @dcopid KommanderIf changeWidgetText CloseLabel "$CLOSE" </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/loop.kmdr b/kommander/examples/tutorial/loop.kmdr index 4aa799f1..998fe1d0 100644 --- a/kommander/examples/tutorial/loop.kmdr +++ b/kommander/examples/tutorial/loop.kmdr @@ -79,7 +79,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="0" column="1"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="1"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -93,7 +93,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -110,5 +110,5 @@ </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/picview.kmdr b/kommander/examples/tutorial/picview.kmdr index be75af7b..bc1f923a 100644 --- a/kommander/examples/tutorial/picview.kmdr +++ b/kommander/examples/tutorial/picview.kmdr @@ -52,7 +52,7 @@ <enum>Directory</enum> </property> </widget> - <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -78,20 +78,20 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>200</width> <height>0</height> </size> </property> - <property name="maximumSize"> + <property name="tqmaximumSize"> <size> <width>200</width> <height>32767</height> </size> </property> <property name="populationText"> - <string>@exec(cd @FileSelector1.text && find * -name "*.jpg" -o -name "*.png" -o -name "*.gif" -o -name "*.bmp")</string> + <string>@exec(cd @FileSelector1.text && tqfind * -name "*.jpg" -o -name "*.png" -o -name "*.gif" -o -name "*.bmp")</string> </property> <property name="associations" stdset="0"> <stringlist> @@ -144,5 +144,5 @@ <slot>populate()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/progressbar.kmdr b/kommander/examples/tutorial/progressbar.kmdr index 397410cb..9e624b78 100644 --- a/kommander/examples/tutorial/progressbar.kmdr +++ b/kommander/examples/tutorial/progressbar.kmdr @@ -106,7 +106,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>191</width> <height>0</height> @@ -123,7 +123,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>191</width> <height>0</height> @@ -137,12 +137,12 @@ <property name="associations" stdset="0"> <stringlist> <string>@# set up a loop using loop variable named "file" -@forEach(file, @exec(cd @FileSelector1.text && find * -maxdepth 0)) +@forEach(file, @exec(cd @FileSelector1.text && tqfind * -maxdepth 0)) @# set the scale using the generated @[loopvar]_count @ProgressBar1.setMaximum(@file_count) @# show file name in statusbar @StatusBar1.setText(@file) - @TreeWidget1.insertItems(@exec(cd @FileSelector1.text && find @file -name "*"), -1) + @TreeWidget1.insertItems(@exec(cd @FileSelector1.text && tqfind @file -name "*"), -1) @# use the generated @[loopvar]_index to update progressbar @ProgressBar1.setText(@file_index) @end @@ -188,5 +188,5 @@ </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/settings.kmdr b/kommander/examples/tutorial/settings.kmdr index 3079d6f9..a280dff2 100644 --- a/kommander/examples/tutorial/settings.kmdr +++ b/kommander/examples/tutorial/settings.kmdr @@ -32,7 +32,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -46,7 +46,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -69,7 +69,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>Layout5</cstring> </property> @@ -93,7 +93,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -104,7 +104,7 @@ <property name="name"> <cstring>ExecButton1</cstring> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>60</width> <height>0</height> @@ -129,7 +129,7 @@ <property name="name"> <cstring>CloseButton1</cstring> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>60</width> <height>0</height> @@ -154,7 +154,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -173,5 +173,5 @@ <slot>populate()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/slots.kmdr b/kommander/examples/tutorial/slots.kmdr index 23ab2d09..ce54a3ba 100644 --- a/kommander/examples/tutorial/slots.kmdr +++ b/kommander/examples/tutorial/slots.kmdr @@ -30,7 +30,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -44,7 +44,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -68,7 +68,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -82,7 +82,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel2</cstring> </property> @@ -105,7 +105,7 @@ </widget> </vbox> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="2" column="0"> <property name="name"> <cstring>Layout3</cstring> </property> @@ -129,7 +129,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -171,7 +171,7 @@ fi <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -196,5 +196,5 @@ fi <slot>startProcess()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/statusbar.kmdr b/kommander/examples/tutorial/statusbar.kmdr index d4f96e05..8dd2b897 100644 --- a/kommander/examples/tutorial/statusbar.kmdr +++ b/kommander/examples/tutorial/statusbar.kmdr @@ -95,5 +95,5 @@ <slot>populate()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/strings.kmdr b/kommander/examples/tutorial/strings.kmdr index 1ef6a953..464f84ae 100644 --- a/kommander/examples/tutorial/strings.kmdr +++ b/kommander/examples/tutorial/strings.kmdr @@ -49,13 +49,13 @@ <b>Last 5 chars:</b> @String.right("@LineEdit1", 5)<br> <b>Chars from 6th to 10th:</b> @String.mid("@LineEdit1", 6, 5)<br> <b>Remove spaces:</b> @String.remove("@LineEdit1", " ")<br> -<b>Replace spaces with *</b>: @String.replace("@LineEdit1", " ", *)<br> +<b>Replace spaces with *</b>: @String.tqreplace("@LineEdit1", " ", *)<br> <b>Uppercase:</b> @String.upper("@LineEdit1")<br> <b>Lowercase:</b> @String.lower("@LineEdit1")<br> <b>Is a number?:</b> @Array.value(Bool, @String.isNumber("@LineEdit1"))<br> <b>Is empty?</b> @Array.value(Bool, @String.isEmpty("@LineEdit1"))<br> -<b>Contains "Kommander"?:</b> @String.contains("@LineEdit1", "Kommander")<br> -<b>Position of "Kommander":</b> @String.find("@LineEdit1", "Kommander")<br> +<b>Contains "Kommander"?:</b> @String.tqcontains("@LineEdit1", "Kommander")<br> +<b>Position of "Kommander":</b> @String.tqfind("@LineEdit1", "Kommander")<br> <b>Compare with "Kommander":</b> @execBegin if [ @String.compare("@LineEdit1", "Kommander") -lt 0 ];then @@ -81,7 +81,7 @@ fi </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="0" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -95,7 +95,7 @@ fi <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -121,7 +121,7 @@ fi </widget> </hbox> </widget> - <widget class="QLayoutWidget" row="2" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="2" column="0"> <property name="name"> <cstring>Layout2</cstring> </property> @@ -145,7 +145,7 @@ fi <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -178,7 +178,7 @@ fi <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>30</width> <height>0</height> @@ -202,5 +202,5 @@ fi <tabstop>ExecButton1</tabstop> <tabstop>TextEdit1</tabstop> </tabstops> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/table.kmdr b/kommander/examples/tutorial/table.kmdr index a2c5986b..d7ed3461 100644 --- a/kommander/examples/tutorial/table.kmdr +++ b/kommander/examples/tutorial/table.kmdr @@ -77,7 +77,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING> <property name="name"> <cstring>Layout3</cstring> </property> @@ -161,7 +161,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>0</width> <height>30</height> @@ -170,7 +170,7 @@ </spacer> </vbox> </widget> - <widget class="QLayoutWidget"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING> <property name="name"> <cstring>Layout4</cstring> </property> @@ -254,5 +254,5 @@ </hbox> </widget> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/tree.kmdr b/kommander/examples/tutorial/tree.kmdr index bed87709..fcde8a28 100644 --- a/kommander/examples/tutorial/tree.kmdr +++ b/kommander/examples/tutorial/tree.kmdr @@ -33,7 +33,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLayoutWidget" row="2" column="0" rowspan="1" colspan="2"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="2" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -60,7 +60,7 @@ <property name="associations" stdset="0"> <stringlist> <string>@TreeWidget1.clear -@TreeWidget1.insertItems(@exec(cd @FileSelector1.text && find * -name "*.kmdr"), -1)</string> +@TreeWidget1.insertItems(@exec(cd @FileSelector1.text && tqfind * -name "*.kmdr"), -1)</string> </stringlist> </property> </widget> @@ -109,7 +109,7 @@ </stringlist> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class=TQLABEL_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -130,7 +130,7 @@ <enum>Directory</enum> </property> </widget> - <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="3" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout3</cstring> </property> @@ -166,5 +166,5 @@ </widget> </grid> </widget> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kommander/examples/tutorial/widgets.kmdr b/kommander/examples/tutorial/widgets.kmdr index 9e6781c6..912cded0 100644 --- a/kommander/examples/tutorial/widgets.kmdr +++ b/kommander/examples/tutorial/widgets.kmdr @@ -68,7 +68,7 @@ </property> <property name="associations" stdset="0"> <stringlist> - <string>@WidgetList.setText(@Form1.children(true))</string> + <string>@WidgetList.setText(@Form1.tqchildren(true))</string> </stringlist> </property> </widget> @@ -82,7 +82,7 @@ </stringlist> </property> </widget> - <widget class="QLayoutWidget" row="1" column="0"> + <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -96,7 +96,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QLabel"> + <widget class=TQLABEL_OBJECT_NAME_STRING> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -129,5 +129,5 @@ <slot>populate()</slot> </connection> </connections> -<layoutdefaults spacing="6" margin="11"/> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> |