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

QFontMetrics constructor should use a const pointer to paintdevice

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes