Skip to content

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

Laurent Montel requested to merge work/fix_ui_file into master

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("list-add"); 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.

Merge request reports