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

Add rvalue overload for QFont::resolve()

XMLWordPrintable

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

      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().

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

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

              Created:
              Updated:

                There are no open Gerrit changes