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

Make sure QFontDatabase methods are used as static methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0.0 RC
    • GUI: Font handling
    • None
    • 5ea1f403502130ed12f6f6a2c6072f4f45e3d488 (qt/qtbase/dev)

    Description

      As per API review comment at https://codereview.qt-project.org/c/qt/qtbase/+/312852/3/src/gui/text/qfontdatabase.h

      QFontDatabase is now just a bunch of static methods and enums. It could just as well be a namespace, but that would break a lot of code that instantiates QFontDatbase today.

      As a first step, deprecate the constructor, cleanup the code in Qt to call methods as static members.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            vhilshei Volker Hilsheimer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews