From b87533f9904c10f24d6b2e8177c00944e3efe15b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 26 Nov 2025 15:11:22 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro --- doc/html/ntqinputdialog.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/ntqinputdialog.html') diff --git a/doc/html/ntqinputdialog.html b/doc/html/ntqinputdialog.html index 6ba9d306d..f81f71d18 100644 --- a/doc/html/ntqinputdialog.html +++ b/doc/html/ntqinputdialog.html @@ -41,7 +41,7 @@ body { background: #ffffff; color: black; }
  • TQString 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 )
  • int 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 )
  • double 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 )
  • -
  • TQString 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 )
  • +
  • TQString 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 )

  • Detailed Description

    @@ -78,8 +78,8 @@ bar of the dialog. label is the text which is shown to the user floating point number that the line edit will be set to. minValue and maxValue are the minimum and maximum values the user may choose, and decimals is the maximum number of decimal places the number may have. -

    If ok is not-null *ok will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +

    If ok is not-null *ok will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal.

    This function returns the floating point number which has been @@ -107,8 +107,8 @@ of the dialog. label is the text which is shown to the user integer which the spinbox will be set to. minValue and maxValue are the minimum and maximum values the user may choose, and step is the amount by which the values change as the user presses the arrow buttons to increment or decrement the value. -

    If ok is not-null *ok will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +

    If ok is not-null *ok will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal.

    This function returns the integer which has been entered by the user. @@ -126,28 +126,28 @@ 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 bar of the dialog. label is the text which is shown to the user (it should say what should be entered). list is the string list which is inserted into the combobox, and current is the number -of the item which should be the current item. If editable is TRUE -the user can enter their own text; if editable is FALSE the user +of the item which should be the current item. If editable is true +the user can enter their own text; if editable is false the user may only select one of the existing items. -

    If ok is not-null *ok will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +

    If ok is not-null *ok will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is parent; the dialog is called name. The dialog will be modal. -

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

    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;
         lst << "First" << "Second" << "Third" << "Fourth" << "Fifth";
         bool ok;
         TQString res = TQInputDialog::getItem(
    -            "MyApp 3000", "Select an item:", lst, 1, TRUE, &ok,
    +            "MyApp 3000", "Select an item:", lst, 1, true, &ok,
                 this );
         if ( ok ) {
             // user selected an item and pressed OK
    @@ -163,8 +163,8 @@ Static convenience function to get a string from the user. caption is t
     dialog. label is the text which is shown to the user (it should
     say what should be entered). text is the default text which is
     placed in the line edit. The mode is the echo mode the line edit
    -will use. If ok is not-null *ok will be set to TRUE if the
    -user pressed OK and to FALSE if the user pressed Cancel. The
    +will use. If ok is not-null *ok will be set to true if the
    +user pressed OK and to false if the user pressed Cancel. The
     dialog's parent is parent; the dialog is called name. The
     dialog will be modal.
     

    This function returns the text which has been entered in the line -- cgit v1.2.3