Magne Sjaastad
fe59babf21
#13987 PDM: Fix IconProvider operator= clearing pixmap + regression test
...
IconProvider::operator= copied a new resource-string but never cleared
the existing m_pixmap. icon() prefers the pixmap when present, so a
pixmap-based default stamped earlier (e.g. by a base class) would
silently shadow a later resource-string-only assignment in a derived
class.
Reset m_pixmap in operator= so resource-string-only assignments fully
replace pixmap-based ones, and cover the replacement semantics with a
caf::IconProvider regression test: default-overwriting-pixmap,
resource-string-overwriting-pixmap and pixmap-overwriting-pixmap.
Needed for the upcoming nested-collection migration where a base class
stamps a folder pixmap and the topmost instance applies a branded
resource-string icon on top.
2026-05-13 14:53:00 +02:00
..
2026-05-13 14:53:00 +02:00
2024-10-28 13:09:18 +01:00
2020-06-19 08:00:01 +02:00
2024-10-28 13:09:18 +01:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2026-04-08 12:37:36 +02:00
2026-02-16 11:32:04 +01:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2026-01-08 21:44:58 +01:00
2023-03-09 12:46:55 +01:00
2024-11-25 09:42:12 +01:00
2024-11-25 09:42:12 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-03-19 16:22:17 +01:00
2020-06-19 08:00:01 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-02-16 16:54:22 +01:00
2026-02-16 16:54:22 +01:00
2023-04-13 07:05:53 +02:00
2024-10-04 15:27:43 +02:00
2020-06-19 08:00:01 +02:00
2024-11-25 09:42:12 +01:00
2024-11-25 09:42:12 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-03-04 09:52:17 +01:00
2026-04-08 12:37:36 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-04-08 12:37:36 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-02-16 16:54:22 +01:00
2026-02-16 16:54:22 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2025-12-17 13:16:10 +01:00
2025-12-17 13:16:10 +01:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2025-11-30 10:35:30 +01:00
2025-11-26 11:34:59 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2025-12-08 15:22:00 +01:00
2023-09-22 09:30:08 +02:00
2020-06-19 08:00:01 +02:00
2024-01-07 18:28:36 +01:00
2024-03-07 19:45:43 +01:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2022-03-11 13:24:01 +01:00
2021-02-22 13:37:05 +01:00
2023-04-13 07:05:53 +02:00
2026-01-08 21:44:58 +01:00
2026-04-08 12:37:36 +02:00
2024-10-04 15:27:43 +02:00
2022-05-04 09:10:32 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-03-31 10:52:29 +02:00
2024-03-07 19:45:43 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2024-03-01 14:59:14 +01:00
2026-04-08 12:37:36 +02:00
2020-06-19 08:00:01 +02:00
2024-09-02 13:58:00 +02:00
2022-06-10 06:25:41 +02:00
2025-05-19 14:31:30 +02:00
2026-01-08 21:44:58 +01:00
2026-01-08 21:44:58 +01:00
2025-11-20 12:39:57 +01:00
2026-04-08 12:37:36 +02:00
2024-01-07 18:28:36 +01:00
2023-11-27 15:34:20 +01:00
2025-10-09 11:14:45 +02:00
2025-05-19 14:31:30 +02:00
2025-03-10 16:56:16 +01:00
2023-03-23 15:49:06 +01:00
2025-08-13 19:07:52 +02:00
2025-11-20 12:39:57 +01:00
2026-04-08 12:37:36 +02:00
2024-11-25 09:42:12 +01:00
2024-10-28 13:09:18 +01:00
2020-06-19 08:00:01 +02:00
2020-06-19 08:00:01 +02:00
2026-03-26 09:59:12 +01:00
2025-01-06 09:10:46 +01:00
2023-04-13 07:05:53 +02:00
2020-06-19 08:00:01 +02:00
2025-11-19 10:25:32 +01:00
2020-06-19 08:00:01 +02:00
2023-11-01 09:37:52 +01:00
2023-11-01 09:37:52 +01:00
2022-09-09 16:06:56 +02:00
2022-09-09 16:06:56 +02:00
2025-10-15 14:34:04 +02:00
2025-10-15 14:34:04 +02:00
2025-08-15 18:57:35 +02:00
2023-03-23 15:49:06 +01:00
2026-02-16 11:32:04 +01:00
2018-11-27 14:59:30 +01:00
2026-02-04 08:47:08 +01:00
2020-09-25 14:32:06 +02:00