From 37c71bad8a4a0ce158e45a08010c1adfce454766 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 5 Mar 2020 11:27:03 +0100 Subject: [PATCH] Inspector: Add special icon for timer objects --- Base/res/icons/16x16/timer.png | Bin 0 -> 207 bytes DevTools/Inspector/RemoteObjectGraphModel.cpp | 3 +++ DevTools/Inspector/RemoteObjectGraphModel.h | 1 + 3 files changed, 4 insertions(+) create mode 100644 Base/res/icons/16x16/timer.png diff --git a/Base/res/icons/16x16/timer.png b/Base/res/icons/16x16/timer.png new file mode 100644 index 0000000000000000000000000000000000000000..151c5aab62460d0869bea02eb9c53785ff6e0f53 GIT binary patch literal 207 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7rg^$JhFF|FI{6@PvjLCm z;|}HE4X*lgA{VS?ImqDAb8+L0XJ0R|<+LWObox8}MA^UV{cl@7C@%>*T&zD&fbr0j zAcmrIk2xANRTRO?G=5fT<@YTUiCmTyIMtn_;o%-pTZOEUhZ$}O5 zTIOyRKY3@z^CMTAm2c{GoNg8E*rm2g{@a!(x45Q@bwvL=^#3Eclass_name == "Window") return m_window_icon; + if (remote_object->class_name == "Timer") + return m_timer_icon; if (remote_object->class_name.ends_with("Layout")) return m_layout_icon; return m_object_icon; diff --git a/DevTools/Inspector/RemoteObjectGraphModel.h b/DevTools/Inspector/RemoteObjectGraphModel.h index 374416c49d..a35c8286d3 100644 --- a/DevTools/Inspector/RemoteObjectGraphModel.h +++ b/DevTools/Inspector/RemoteObjectGraphModel.h @@ -58,4 +58,5 @@ private: GIcon m_object_icon; GIcon m_window_icon; GIcon m_layout_icon; + GIcon m_timer_icon; };