diff options
Diffstat (limited to 'doc/html/regexptester-example.html')
-rw-r--r-- | doc/html/regexptester-example.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/regexptester-example.html b/doc/html/regexptester-example.html index 19bfb8111..1d90da289 100644 --- a/doc/html/regexptester-example.html +++ b/doc/html/regexptester-example.html @@ -163,9 +163,9 @@ private: languageChange(); - <a href="ntqobject.html#connect">connect</a>(copyPushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(copy())); - <a href="ntqobject.html#connect">connect</a>(executePushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(execute())); - <a href="ntqobject.html#connect">connect</a>(quitPushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(<a href="ntqdialog.html#accept">accept</a>())); + <a href="tqobject.html#connect">connect</a>(copyPushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(copy())); + <a href="tqobject.html#connect">connect</a>(executePushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(execute())); + <a href="tqobject.html#connect">connect</a>(quitPushButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(<a href="ntqdialog.html#accept">accept</a>())); execute(); } @@ -181,7 +181,7 @@ void <a name="f557"></a>RegexpTester::execute() bool wildcard = wildcardCheckBox-><a href="ntqcheckbox.html#isChecked">isChecked</a>(); <a name="x2493"></a> re.<a href="ntqregexp.html#setWildcard">setWildcard</a>(wildcard); <a name="x2487"></a> if (!re.<a href="ntqregexp.html#isValid">isValid</a>()) { -<a name="x2494"></a> statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="ntqobject.html#tr">tr</a>("Invalid <a href="ntqregexp.html#regular-expression">regular expression</a>: %1") +<a name="x2494"></a> statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="tqobject.html#tr">tr</a>("Invalid <a href="ntqregexp.html#regular-expression">regular expression</a>: %1") <a name="x2486"></a> .arg(re.<a href="ntqregexp.html#errorString">errorString</a>())); return; } @@ -234,11 +234,11 @@ void <a name="f557"></a>RegexpTester::execute() <a name="x2498"></a> resultTable-><a href="ntqtable.html#adjustColumn">adjustColumn</a>(0); resultTable-><a href="ntqtable.html#adjustColumn">adjustColumn</a>(1); resultTable-><a href="ntqtable.html#adjustColumn">adjustColumn</a>(2); - statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="ntqobject.html#tr">tr</a>("Executed \"%1\" on \"%2\"") + statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="tqobject.html#tr">tr</a>("Executed \"%1\" on \"%2\"") .arg(escaped).arg(text)); } else - statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="ntqobject.html#tr">tr</a>("A regular expression and a text must be given")); + statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="tqobject.html#tr">tr</a>("A regular expression and a text must be given")); } void <a name="f558"></a>RegexpTester::copy() @@ -250,24 +250,24 @@ void <a name="f558"></a>RegexpTester::copy() <a name="x2476"></a> cb-><a href="ntqclipboard.html#setText">setText</a>(escaped, TQClipboard::Clipboard); <a name="x2477"></a> if (cb-><a href="ntqclipboard.html#supportsSelection">supportsSelection</a>()) cb-><a href="ntqclipboard.html#setText">setText</a>(escaped, TQClipboard::Selection); - statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="ntqobject.html#tr">tr</a>("Copied \"%1\" to the clipboard") + statusBar-><a href="ntqstatusbar.html#message">message</a>(<a href="tqobject.html#tr">tr</a>("Copied \"%1\" to the clipboard") .arg(escaped)); } } void <a name="f559"></a>RegexpTester::languageChange() { - <a href="ntqwidget.html#setCaption">setCaption</a>(<a href="ntqobject.html#tr">tr</a>("Regex Tester")); - regexLabel-><a href="ntqlabel.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Regex:")); -<a name="x2479"></a> regexComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>(<a href="ntqobject.html#tr">tr</a>("[A-Z]+=(\\d+):(\\d*)")); - textLabel-><a href="ntqlabel.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Text:")); - textComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>(<a href="ntqobject.html#tr">tr</a>("ABC=12:3456")); -<a name="x2473"></a> caseSensitiveCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("Case &Sensitive")); - minimalCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Minimal")); - wildcardCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Wildcard")); - copyPushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Copy")); - executePushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Execute")); - quitPushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="ntqobject.html#tr">tr</a>("&Quit")); + <a href="ntqwidget.html#setCaption">setCaption</a>(<a href="tqobject.html#tr">tr</a>("Regex Tester")); + regexLabel-><a href="ntqlabel.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Regex:")); +<a name="x2479"></a> regexComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>(<a href="tqobject.html#tr">tr</a>("[A-Z]+=(\\d+):(\\d*)")); + textLabel-><a href="ntqlabel.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Text:")); + textComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>(<a href="tqobject.html#tr">tr</a>("ABC=12:3456")); +<a name="x2473"></a> caseSensitiveCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("Case &Sensitive")); + minimalCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Minimal")); + wildcardCheckBox-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Wildcard")); + copyPushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Copy")); + executePushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Execute")); + quitPushButton-><a href="ntqbutton.html#setText">setText</a>(<a href="tqobject.html#tr">tr</a>("&Quit")); } </pre> @@ -282,7 +282,7 @@ int main(int argc, char **argv) <a href="ntqapplication.html">TQApplication</a> app(argc, argv); RegexpTester form; <a name="x2511"></a> form.<a href="ntqdialog.html#show">show</a>(); -<a name="x2512"></a><a name="x2510"></a><a name="x2509"></a> app.<a href="ntqobject.html#connect">connect</a>(&app, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &app, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>())); +<a name="x2512"></a><a name="x2510"></a><a name="x2509"></a> app.<a href="tqobject.html#connect">connect</a>(&app, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &app, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>())); return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |