From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/regexptester-example.html | 72 +++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'doc/html/regexptester-example.html') diff --git a/doc/html/regexptester-example.html b/doc/html/regexptester-example.html index 0666ff806..c134421d4 100644 --- a/doc/html/regexptester-example.html +++ b/doc/html/regexptester-example.html @@ -48,7 +48,7 @@ comboboxes.

#ifndef REGEXPTESTER_H
 #define REGEXPTESTER_H
 
-#include <ntqdialog.h>
+#include <tqdialog.h>
 
 class TQCheckBox;
 class TQComboBox;
@@ -57,7 +57,7 @@ class TQPushButton;
 class TQStatusBar;
 class TQTable;
 
-class RegexpTester : public TQDialog
+class RegexpTester : public TQDialog
 {
     TQ_OBJECT
 
@@ -66,16 +66,16 @@ public:
                  WFlags f=0);
 
     TQLabel *regexLabel;
-    TQComboBox *regexComboBox;
+    TQComboBox *regexComboBox;
     TQLabel *textLabel;
-    TQComboBox *textComboBox;
-    TQCheckBox *caseSensitiveCheckBox;
-    TQCheckBox *minimalCheckBox;
-    TQCheckBox *wildcardCheckBox;
+    TQComboBox *textComboBox;
+    TQCheckBox *caseSensitiveCheckBox;
+    TQCheckBox *minimalCheckBox;
+    TQCheckBox *wildcardCheckBox;
     TQTable *resultTable;
-    TQPushButton *executePushButton;
-    TQPushButton *copyPushButton;
-    TQPushButton *quitPushButton;
+    TQPushButton *executePushButton;
+    TQPushButton *copyPushButton;
+    TQPushButton *quitPushButton;
     TQStatusBar *statusBar;
 
 public slots:
@@ -92,12 +92,12 @@ private:
 


Implementation:

#include <ntqapplication.h>
-#include <ntqcheckbox.h>
+#include <tqcheckbox.h>
 #include <tqclipboard.h>
-#include <ntqcombobox.h>
+#include <tqcombobox.h>
 #include <tqlabel.h>
 #include <ntqlayout.h>
-#include <ntqpushbutton.h>
+#include <tqpushbutton.h>
 #include <tqregexp.h>
 #include <tqstatusbar.h>
 #include <ntqtable.h>
@@ -107,32 +107,32 @@ private:
 
 RegexpTester::RegexpTester(TQWidget* parent, const char* name, bool modal,
                            WFlags f)
-    : TQDialog(parent, name, modal, f)
+    : TQDialog(parent, name, modal, f)
 {
     regexLabel = new TQLabel(this);
-    regexComboBox = new TQComboBox(this);
-    regexComboBox->setEditable(true);
+    regexComboBox = new TQComboBox(this);
+    regexComboBox->setEditable(true);
     regexComboBox->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred);
     regexLabel->setBuddy(regexComboBox);
     textLabel = new TQLabel(this);
-    textComboBox = new TQComboBox(this);
-    textComboBox->setEditable(true);
+    textComboBox = new TQComboBox(this);
+    textComboBox->setEditable(true);
     textComboBox->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Preferred);
     textLabel->setBuddy(textComboBox);
-    caseSensitiveCheckBox = new TQCheckBox(this);
-    caseSensitiveCheckBox->setChecked(true);
-    minimalCheckBox = new TQCheckBox(this);
-    wildcardCheckBox = new TQCheckBox(this);
+    caseSensitiveCheckBox = new TQCheckBox(this);
+    caseSensitiveCheckBox->setChecked(true);
+    minimalCheckBox = new TQCheckBox(this);
+    wildcardCheckBox = new TQCheckBox(this);
     resultTable = new TQTable(3, 3, this);
     resultTable->verticalHeader()->hide();
     resultTable->setLeftMargin(0);
     resultTable->horizontalHeader()->hide();
     resultTable->setTopMargin(0);
     resultTable->setReadOnly(true);
-    executePushButton = new TQPushButton(this);
-    executePushButton->setDefault(true);
-    copyPushButton = new TQPushButton(this);
-    quitPushButton = new TQPushButton(this);
+    executePushButton = new TQPushButton(this);
+    executePushButton->setDefault(true);
+    copyPushButton = new TQPushButton(this);
+    quitPushButton = new TQPushButton(this);
     statusBar = new TQStatusBar(this);
 
     TQGridLayout *gridLayout = new TQGridLayout(2, 2, 6);
@@ -165,20 +165,20 @@ private:
 
     connect(copyPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(copy()));
     connect(executePushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(execute()));
-    connect(quitPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
+    connect(quitPushButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(accept()));
 
     execute();
 }
 
 void RegexpTester::execute()
 {
-    TQString regex = regexComboBox->currentText();
-    TQString text = textComboBox->currentText();
+    TQString regex = regexComboBox->currentText();
+    TQString text = textComboBox->currentText();
     if (!regex.isEmpty() && !text.isEmpty()) {
         TQRegExp re(regex);
-        re.setCaseSensitive(caseSensitiveCheckBox->isChecked());
-        re.setMinimal(minimalCheckBox->isChecked());
-        bool wildcard = wildcardCheckBox->isChecked();
+        re.setCaseSensitive(caseSensitiveCheckBox->isChecked());
+        re.setMinimal(minimalCheckBox->isChecked());
+        bool wildcard = wildcardCheckBox->isChecked();
         re.setWildcard(wildcard);
         if (!re.isValid()) {
             statusBar->message(tr("Invalid regular expression: %1")
@@ -243,7 +243,7 @@ void RegexpTester::execute()
 
 void RegexpTester::copy()
 {
-    TQString escaped = regexComboBox->currentText();
+    TQString escaped = regexComboBox->currentText();
     if (!escaped.isEmpty()) {
         escaped = escaped.replace("\\", "\\\\");
         TQClipboard *cb = TQApplication::clipboard();
@@ -259,9 +259,9 @@ void RegexpTester::languageChange()
 {
     setCaption(tr("Regex Tester"));
     regexLabel->setText(tr("&Regex:"));
-    regexComboBox->insertItem(tr("[A-Z]+=(\\d+):(\\d*)"));
+    regexComboBox->insertItem(tr("[A-Z]+=(\\d+):(\\d*)"));
     textLabel->setText(tr("&Text:"));
-    textComboBox->insertItem(tr("ABC=12:3456"));
+    textComboBox->insertItem(tr("ABC=12:3456"));
     caseSensitiveCheckBox->setText(tr("Case &Sensitive"));
     minimalCheckBox->setText(tr("&Minimal"));
     wildcardCheckBox->setText(tr("&Wildcard"));
@@ -281,7 +281,7 @@ int main(int argc, char **argv)
 {
     TQApplication app(argc, argv);
     RegexpTester form;
-    form.show();
+    form.show();
     app.connect(&app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()));
     return app.exec();
 }
-- 
cgit v1.2.3