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

Qt API should use SI units or SI derived units

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • P2: Important
    • 5.0.0, Some future release
    • 4.6.3
    • Other
    • None

    Description

      reasons for SI units are obvious: http://edition.cnn.com/TECH/space/9909/30/mars.metric

      Examples:

      use seconds instead of miliseconds
      QTimer::setInterval(int msec)
      QTimer::start(int msec)
      should be 'double sec'

      use radians instead of degrees (or 1/16th of a degree)
      QPainter::drawArc, QPainter::drawChord, QPainter::drawPie, QPainterPath::arcTo

      base method (without unit in its name) should use SI
      QTransform::rotate() // sould use radians
      QTransform::rotateRadians // not needed
      QTransform::rotateDegrees // additional non SI variants possible

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            hc Michal Dvoracek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes