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

QFontMetrics constructor should use a const pointer to paintdevice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • 6.0
    • 5.7.0
    • GUI: Text handling
    • None

    Description

      The constructor

      QFontMetrics::QFontMetrics(const QFont &font, QPaintDevice *paintdevice)

      should use a const pointer to the paint device instead:

      QFontMetrics::QFontMetrics(const QFont &font, const QPaintDevice *paintdevice)

      Logically, it is not meant to modify the device. It just calls a const function, so the change should be trivial.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              thoffmann Tim Hoffmann
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes