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

Allow icon regeneration in mode QIcon::Normal

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • SVG Support
    • None

      Actually, in default IconEngine (QSvgIconEngine & QPixmapIconEngine), pixmap method generate QPixmap except for QIcon::Normal (Optimization ?).

      In certain use case it's can be practice that method generate a QPixmap for QIcon::Normal mode too.

      Maybe disable optimization with flag or something else, to keep actual processing by default and switch when we need full generation.

       

      QPixmap QSvgIconEngine::pixmap(const QSize &size, QIcon::Mode mode,
                                     QIcon::State state)
      // ...
      >if (loadmode != mode &&  (mode != QIcon::Normal || flagNormalGenerate) {
          const QPixmap generated = QGuiApplicationPrivate::instance()->applyQIconStyleHelper(mode, pm);
          if (!generated.isNull())
              pm = generated;
       }
      

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

            Unassigned Unassigned
            jlb Jean-laurent Barbie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes