From e6077c30d14e9d662e8843c554db86c0d366d0b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 6 Jun 2024 13:44:12 +0900 Subject: Rename str nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/ntqinputdialog.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'doc/html/ntqinputdialog.html') diff --git a/doc/html/ntqinputdialog.html b/doc/html/ntqinputdialog.html index c52d87e7d..af631ca60 100644 --- a/doc/html/ntqinputdialog.html +++ b/doc/html/ntqinputdialog.html @@ -56,10 +56,10 @@ label must be set to tell the user what they should enter. functions can be used in a similar way, for example:
     bool ok;
-    TQString text = TQInputDialog::getText(
+    TQString text = TQInputDialog::getText(
             "MyApp 3000", "Enter your name:", TQLineEdit::Normal,
-            TQString::null, &ok, this );
-    if ( ok && !text.isEmpty() ) {
+            TQString::null, &ok, this );
+    if ( ok && !text.isEmpty() ) {
         // user entered something and pressed OK
     } else {
         // user entered nothing or pressed Cancel
@@ -69,7 +69,7 @@ functions can be used in a similar way, for example:
 

Input Dialogs

See also Dialog Classes.


Member Function Documentation

-

double TQInputDialog::getDouble ( const TQString & caption, const TQString & label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static] +

double TQInputDialog::getDouble ( const TQString & caption, const TQString & label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static]

Static convenience function to get a floating point number from the user. caption is the text which is displayed in the title @@ -98,7 +98,7 @@ entered by the user.
-

int TQInputDialog::getInteger ( const TQString & caption, const TQString & label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static] +

int TQInputDialog::getInteger ( const TQString & caption, const TQString & label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static]

Static convenience function to get an integer input from the user. caption is the text which is displayed in the title bar @@ -126,7 +126,7 @@ be modal. -

TQString TQInputDialog::getItem ( const TQString & caption, const TQString & label, const TQStringList & list, int current = 0, bool editable = TRUE, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static] +

TQString TQInputDialog::getItem ( const TQString & caption, const TQString & label, const TQStringList & list, int current = 0, bool editable = TRUE, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static]

Static convenience function to let the user select an item from a string list. caption is the text which is displayed in the title @@ -143,10 +143,10 @@ be modal.

This function returns the text of the current item, or if editable is TRUE, the current text of the combobox.

Use this static function like this:

-    TQStringList lst;
+    TQStringList lst;
     lst << "First" << "Second" << "Third" << "Fourth" << "Fifth";
     bool ok;
-    TQString res = TQInputDialog::getItem(
+    TQString res = TQInputDialog::getItem(
             "MyApp 3000", "Select an item:", lst, 1, TRUE, &ok,
             this );
     if ( ok ) {
@@ -157,7 +157,7 @@ be modal.
     
-

TQString TQInputDialog::getText ( const TQString & caption, const TQString & label, TQLineEdit::EchoMode mode = TQLineEdit::Normal, const TQString & text = TQString::null, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static] +

TQString TQInputDialog::getText ( const TQString & caption, const TQString & label, TQLineEdit::EchoMode mode = TQLineEdit::Normal, const TQString & text = TQString::null, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 ) [static]

Static convenience function to get a string from the user. caption is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should @@ -172,10 +172,10 @@ edit. It will not return an empty string.

Use this static function like this:

     bool ok;
-    TQString text = TQInputDialog::getText(
+    TQString text = TQInputDialog::getText(
             "MyApp 3000", "Enter your name:", TQLineEdit::Normal,
-            TQString::null, &ok, this );
-    if ( ok && !text.isEmpty() ) {
+            TQString::null, &ok, this );
+    if ( ok && !text.isEmpty() ) {
         // user entered something and pressed OK
     } else {
         // user entered nothing or pressed Cancel
-- 
cgit v1.2.3