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
          screenshot-6.png
          314 kB
        2. screenshot-5.png
          screenshot-5.png
          759 kB
        3. screenshot-4.png
          screenshot-4.png
          299 kB
        4. screenshot-3.png
          screenshot-3.png
          239 kB
        5. screenshot-2.png
          screenshot-2.png
          214 kB
        6. screenshot-1.png
          screenshot-1.png
          388 kB
        7. headerview_without_aa.png
          headerview_without_aa.png
          0.9 kB
        8. headerview_with_aa.png
          headerview_with_aa.png
          1 kB
        9. combobox-good.jpg
          combobox-good.jpg
          2 kB
        10. combobox-bad.jpg
          combobox-bad.jpg
          2 kB
        11. arrows_1x_integer.png
          arrows_1x_integer.png
          0.6 kB
        12. arrows_1x_float.png
          arrows_1x_float.png
          0.6 kB
        13. arrows_1.5x_integer.png
          arrows_1.5x_integer.png
          1.0 kB
        14. arrows_1.5x_float.png
          arrows_1.5x_float.png
          1 kB
        15. arrows_1.25x_integer.png
          arrows_1.25x_integer.png
          0.7 kB
        16. arrows_1.25x_float.png
          arrows_1.25x_float.png
          0.9 kB
        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: