File indexing completed on 2024-04-28 05:41:32
0001 /* 0002 This file is part of KCachegrind. 0003 0004 SPDX-FileCopyrightText: 2003-2016 Josef Weidendorfer <Josef.Weidendorfer@gmx.de> 0005 0006 SPDX-License-Identifier: GPL-2.0-only 0007 */ 0008 0009 /* 0010 * Event Type View 0011 */ 0012 0013 #ifndef EVENTTYPEVIEW_H 0014 #define EVENTTYPEVIEW_H 0015 0016 #include <QTreeWidget> 0017 0018 #include "tracedata.h" 0019 #include "traceitemview.h" 0020 0021 class EventTypeView: public QTreeWidget, public TraceItemView 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit EventTypeView(TraceItemView* parentView, 0027 QWidget* parent, const QString& name); 0028 0029 QWidget* widget() override { return this; } 0030 QString whatsThis() const override; 0031 0032 private Q_SLOTS: 0033 void context(const QPoint&); 0034 void currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*); 0035 void itemDoubleClicked(QTreeWidgetItem*, int); 0036 void itemChanged(QTreeWidgetItem*, int); 0037 0038 private: 0039 CostItem* canShow(CostItem*) override; 0040 void doUpdate(int, bool) override; 0041 void refresh(); 0042 }; 0043 0044 #endif