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

Widgets/Styles: simplify usage of QPixmapCache

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • None
    • None
    • Widgets: Styles
    • None
    • All
    • ff9818135 (dev), e5f973838 (dev), cb58eadef (dev), e70cc743b (dev), 16ed137ef (dev), 43e2315ff (dev), 799a51586 (dev), 91d16c852 (dev), 75617efe2 (dev), a4d4d04bb (dev), cb9d8226d (dev), 1ad9330a9 (dev), b7a47d330 (dev)

    Description

      The styles, especially fusion style, is using QPixmapCache various ways. There is even a macro to simplify the usage.
      All of them lack a generic usage without all the boilerplate code needed around.
      The idea is to add a new private class QCachedPainter which is responsible for the caching through QPixmapCache and transparently redirects the painting code to the pixmap for QPixmapCache.

      Attachments

        1. combobox-bad.jpg
          2 kB
          Nodir Temirkhodjaev
        2. combobox-good.jpg
          2 kB
          Nodir Temirkhodjaev
        3. arrows_1.5x_integer.png
          1.0 kB
          Christian Ehrlicher
        4. arrows_1.5x_float.png
          1 kB
          Christian Ehrlicher
        5. arrows_1.25x_float.png
          0.9 kB
          Christian Ehrlicher
        6. arrows_1.25x_integer.png
          0.7 kB
          Christian Ehrlicher
        7. arrows_1x_integer.png
          0.6 kB
          Christian Ehrlicher
        8. arrows_1x_float.png
          0.6 kB
          Christian Ehrlicher
        9. screenshot-1.png
          388 kB
          Axel Spoerl
        10. screenshot-2.png
          214 kB
          Axel Spoerl
        11. screenshot-3.png
          239 kB
          Axel Spoerl
        12. screenshot-4.png
          299 kB
          Axel Spoerl
        13. screenshot-5.png
          759 kB
          Axel Spoerl
        14. screenshot-6.png
          314 kB
          Axel Spoerl
        15. headerview_with_aa.png
          1 kB
          Christian Ehrlicher
        16. headerview_without_aa.png
          0.9 kB
          Christian Ehrlicher
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            chehrlic Christian Ehrlicher
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: