2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-04-04 14:39:28 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-04-04 14:39:28 +02:00
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QComboBox;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace Valgrind {
|
|
|
|
|
namespace Callgrind {
|
|
|
|
|
class ParseData;
|
|
|
|
|
class Function;
|
|
|
|
|
class CallModel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Callgrind {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
class CallgrindWidgetHandler;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class ModelTestWidget : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit ModelTestWidget(Callgrind::Internal::CallgrindWidgetHandler *handler);
|
|
|
|
|
virtual ~ModelTestWidget();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void showViewContextMenu(const QPoint &pos);
|
|
|
|
|
|
|
|
|
|
void formatChanged(int);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QComboBox *m_format;
|
|
|
|
|
QComboBox *m_event;
|
|
|
|
|
Callgrind::Internal::CallgrindWidgetHandler *m_handler;
|
|
|
|
|
};
|