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