File indexing completed on 2024-04-28 05:41:36
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 * Part View 0011 */ 0012 0013 #ifndef PARTVIEW_H 0014 #define PARTVIEW_H 0015 0016 #include <QTreeWidget> 0017 0018 #include "tracedata.h" 0019 #include "traceitemview.h" 0020 0021 class PartView: public QTreeWidget, public TraceItemView 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit PartView(TraceItemView* parentView, QWidget* parent=nullptr); 0027 0028 QWidget* widget() override { return this; } 0029 QString whatsThis() const override; 0030 0031 void refresh(); 0032 0033 private Q_SLOTS: 0034 void context(const QPoint &); 0035 void selectionChangedSlot(); 0036 void headerClicked(int); 0037 0038 private: 0039 CostItem* canShow(CostItem*) override; 0040 void doUpdate(int, bool) override; 0041 0042 bool _inSelectionUpdate; 0043 }; 0044 0045 #endif