Skip to content
Commit 3f69448a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Remove icon properties in .ui file with Designer's "." normaloff file data

Qt Designer (accidentally) injected "." file names as fallback when
setting theme icon names, which then results in generated code like:
    QIcon icon;
    QString iconThemeName = QString::fromUtf8("format-text-superscript");
    if (QIcon::hasThemeIcon(iconThemeName)) {
        icon = QIcon::fromTheme(iconThemeName);
    } else {
        icon.addFile(QString::fromUtf8("."), QSize(), QIcon::Normal, QIcon::Off);
    }
Such a "." file name is not documented to serve any purpose, just results
in failing icon lookup.

For the given UI elements the icons will be replaced in manual code later,
with more special code, so the properties can just be dropped.

See QTBUG-115333.

NO_CHANGELOG
parent c24cb4da
Pipeline #440784 passed with stage
in 7 minutes and 32 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment