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

Widgets/Styles: simplify usage of QPixmapCache

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • 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. screenshot-6.png
          314 kB
          Axel Spoerl
        2. screenshot-5.png
          759 kB
          Axel Spoerl
        3. screenshot-4.png
          299 kB
          Axel Spoerl
        4. screenshot-3.png
          239 kB
          Axel Spoerl
        5. screenshot-2.png
          214 kB
          Axel Spoerl
        6. screenshot-1.png
          388 kB
          Axel Spoerl
        7. headerview_without_aa.png
          0.9 kB
          Christian Ehrlicher
        8. headerview_with_aa.png
          1 kB
          Christian Ehrlicher
        9. combobox-good.jpg
          2 kB
          Nodir Temirkhodjaev
        10. combobox-bad.jpg
          2 kB
          Nodir Temirkhodjaev
        11. arrows_1x_integer.png
          0.6 kB
          Christian Ehrlicher
        12. arrows_1x_float.png
          0.6 kB
          Christian Ehrlicher
        13. arrows_1.5x_integer.png
          1.0 kB
          Christian Ehrlicher
        14. arrows_1.5x_float.png
          1 kB
          Christian Ehrlicher
        15. arrows_1.25x_integer.png
          0.7 kB
          Christian Ehrlicher
        16. arrows_1.25x_float.png
          0.9 kB
          Christian Ehrlicher
        For Gerrit Dashboard: QTBUG-129680
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated: