File indexing completed on 2024-04-21 08:48:25

0001 /*
0002     SPDX-FileCopyrightText: 2009 Tony Murray <murraytony@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef CONNECTIONDELEGATE_H
0008 #define CONNECTIONDELEGATE_H
0009 
0010 #include <QStyledItemDelegate>
0011 
0012 class ConnectionDelegate : public QStyledItemDelegate
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ConnectionDelegate(QObject *parent = nullptr);
0017     QString displayText(const QVariant &value, const QLocale& locale) const override;
0018     void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
0019     QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
0020 };
0021 
0022 #endif // CONNECTIONDELEGATE_H