1
0
mirror of https://invent.kde.org/network/krdc synced 2024-07-08 20:05:56 +00:00
krdc/connectiondelegate.h

23 lines
680 B
C
Raw Normal View History

2021-06-14 15:48:31 +00:00
/*
SPDX-FileCopyrightText: 2009 Tony Murray <murraytony@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef CONNECTIONDELEGATE_H
#define CONNECTIONDELEGATE_H
#include <QStyledItemDelegate>
class ConnectionDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
2018-04-23 20:47:28 +00:00
explicit ConnectionDelegate(QObject *parent = nullptr);
QString displayText(const QVariant &value, const QLocale &locale) const override;
2018-04-23 20:46:32 +00:00
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};
#endif // CONNECTIONDELEGATE_H