CCIMXDesktop
 
Loading...
Searching...
No Matches
ConnectorDelegate.h
1#ifndef CONNECTORDELEGATE_H
2#define CONNECTORDELEGATE_H
3
4#include <QStyledItemDelegate>
5
6class ConnectorDelegate : public QStyledItemDelegate {
7public:
8 explicit ConnectorDelegate(QObject* parent = nullptr);
9 void paint(QPainter* p, const QStyleOptionViewItem& opt, const QModelIndex& idx) const override;
10 QSize sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const override;
11};
12
13static const QSize avatarSize(40, 40);
14static const int contactHeight = 64;
15
16#endif // CONNECTORDELEGATE_H
Definition ConnectorDelegate.h:6