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

Miss Doc/Guide for some functions of class QLineF

    XMLWordPrintable

Details

    • 1575462bf90851fb134db4892e93c04b396543f1

    Description

      Suggestion:
      For class function QLineF::dx() & QLineF::dy(),
      It's better to clearly define the return value of these 2 function. Whether the return value is an absolute value of the length of dx from P1() to P2() that means the return value must be a positive number or can be a negative number which is really the dx point from P1() to P2() .
      Reason:
      I single step debug the source code, find out that QLineF::dx() and QLineF::dy() return value has its orientation.
      So I think its better to note this point in the document, in case that other developers needn't to debug the code to find out the true when they want to know these 2 functions has orientation or not.
      Scenario:
      I single step debug the source code, find out that QLineF::dx() and QLineF::dy() return value has its orientation.
      So I think its better to note this point in the document, in case that other developers needn't to debug the code to find out the true when they want to know these 2 functions has orientation or not.

      Attachments

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

        Activity

          People

            cvandonderen Casper van Donderen
            delongyang DelongYang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes