2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-04 14:39:29 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-04-04 14:39:29 +02:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QStyledItemDelegate>
|
2011-04-04 14:39:29 +02:00
|
|
|
|
2011-05-23 13:50:28 +02:00
|
|
|
namespace Valgrind {
|
2011-04-04 14:39:29 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class NameDelegate : public QStyledItemDelegate
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-12-10 08:11:18 +01:00
|
|
|
explicit NameDelegate(QObject *parent = nullptr);
|
2011-04-04 14:39:29 +02:00
|
|
|
|
2011-07-13 14:58:54 +02:00
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
2018-12-10 08:11:18 +01:00
|
|
|
const QModelIndex &index) const override;
|
2011-04-04 14:39:29 +02:00
|
|
|
};
|
|
|
|
|
|
2011-05-23 13:50:28 +02:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Valgrind
|