mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
18 lines
385 B
C++
18 lines
385 B
C++
#pragma once
|
|
|
|
#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;
|
|
};
|