mirror of
https://invent.kde.org/network/krdc
synced 2024-07-05 17:29:34 +00:00
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
23 lines
680 B
C++
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
|