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

Add rvalue overload for QFont::resolve()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • GUI: Font handling
    • None

    Description

      The QFont::resolve() function currently operates on only lvalue *this and argument. The implementation could be faster if either of the two (or both) were known to be rvalues.

      Add the complete set:

      • QFont resolve(const QFont &) const & (exists, but needs to be REMOVED_SINCE to make adding a const & *this overload possible)
      • QFont resolve(QFont &&) const &
      • QFont resolve(const QFont &) &&
      • QFont resolve(QFont &&) &&

      Then add an rvalue overload of QPainter::setFont().

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes