Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38535

Documentation inconsistent about QSize::isValid

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P4: Low
    • 5.3.1
    • None
    • Core: Other, Documentation
    • None
    • documentation

    Description

      The documentation for QSize sais in the "Detailed description":

      "The isValid() function determines if a size is valid (a valid size has both width and height greater than zero)."

      But in the documentation for the isValid() function it sais:

      "Returns true if both the width and height is equal to or greater than 0; otherwise returns false."

      now in case of QSize(0,40) the first documentation would give isValid()==false, where the second documentation would give isValid()==true.

      the second documentation matches the code. please correct the first.

      Thanks
      Erik

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            erikred Erik Thiele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes