1
0
mirror of https://invent.kde.org/network/krdc synced 2024-07-05 17:29:34 +00:00
krdc/connectiondelegate.h
Nicolas Fella 34c1e56e12 Add and make use of ECM clang-format integration
Format the code according to KDE coding style and add
a commit hook to ensure it stays that way.

This is common practice among other KDE projects
2024-01-28 16:16:28 +01:00

23 lines
680 B
C++

/*
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:
explicit ConnectionDelegate(QObject *parent = nullptr);
QString displayText(const QVariant &value, const QLocale &locale) const override;
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