Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kitemlistview.h
Show First 20 Lines • Show All 841 Lines • ▼ Show 20 Line(s) | 841 | KItemListWidgetCreator<T>::KItemListWidgetCreator() : | |||
---|---|---|---|---|---|
842 | m_informant(T::createInformant()) | 842 | m_informant(T::createInformant()) | ||
843 | { | 843 | { | ||
844 | } | 844 | } | ||
845 | 845 | | |||
846 | template <class T> | 846 | template <class T> | ||
847 | KItemListWidgetCreator<T>::~KItemListWidgetCreator() | 847 | KItemListWidgetCreator<T>::~KItemListWidgetCreator() | ||
848 | { | 848 | { | ||
849 | delete m_informant; | 849 | delete m_informant; | ||
850 | m_informant = nullptr; | ||||
850 | } | 851 | } | ||
851 | 852 | | |||
852 | template <class T> | 853 | template <class T> | ||
853 | KItemListWidget* KItemListWidgetCreator<T>::create(KItemListView* view) | 854 | KItemListWidget* KItemListWidgetCreator<T>::create(KItemListView* view) | ||
854 | { | 855 | { | ||
855 | KItemListWidget* widget = static_cast<KItemListWidget*>(popRecycleableWidget()); | 856 | KItemListWidget* widget = static_cast<KItemListWidget*>(popRecycleableWidget()); | ||
856 | if (!widget) { | 857 | if (!widget) { | ||
857 | widget = new T(m_informant, view); | 858 | widget = new T(m_informant, view); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |