mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-06 05:14:13 +02:00
f6b448daa7
@plc-user asked (review on #633) for a way to see a broken folder directly in the tree instead of only on tooltip hover, originally suggesting a "FixMe: " text prefix on the displayed name. That name is reused verbatim in dialog titles and status-bar messages elsewhere (elementscollectionwidget.cpp), so baking a prefix into it would leak into those too. An icon badge gets the same visibility without touching the name value. setUpIcon() overlays a small warning glyph on the folder icon when m_qet_directory_unreadable is set. Also drop the "already has an icon, skip" guard for directories specifically: that flag is only known once the async setUpData()/localName() job completes (QtConcurrent::map), so without this a directory painted before that finished would have its plain folder icon cached forever and never pick up the badge.