mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-08 04:19:59 +03:00
21 lines
420 B
C++
21 lines
420 B
C++
#ifndef STATUSDOT_H
|
|
#define STATUSDOT_H
|
|
|
|
#include <QPainter>
|
|
#include <QStyleOptionViewItem>
|
|
#include <QStyledItemDelegate>
|
|
|
|
class StatusDot : public QStyledItemDelegate
|
|
{
|
|
public:
|
|
StatusDot(QObject *parent = nullptr)
|
|
: QStyledItemDelegate(parent)
|
|
{}
|
|
|
|
void paint(QPainter *painter,
|
|
const QStyleOptionViewItem &option,
|
|
const QModelIndex &index) const override;
|
|
};
|
|
|
|
#endif
|