blob: dcf8861114413d10d0cd1b12845ae9f6f541065c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef SEARCHRESULTDELEGATE_H
#define SEARCHRESULTDELEGATE_H
#include <QStyledItemDelegate>
//! [0]
class SearchResultDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
SearchResultDelegate(QObject *parent = nullptr);
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
};
#endif // SEARCHRESULTDELEGATE_H
|