| 154 | static void setDefaultTypes(const std::set<SidebarWidgetType*>& types) { m_defaultTypes = types; } |
| 155 | |
| 156 | static Sidebar* current() |
| 157 | { |
| 158 | UIContext* context = UIContext::activeContext(); |
| 159 | if (!context) |
| 160 | return nullptr; |
| 161 | return context->sidebar(); |
| 162 | } |
| 163 | |
| 164 | template <class T> |
| 165 | static T* widget(SidebarWidgetType* type) |
no outgoing calls