mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 20:09:55 +03:00
Hardcode the size of the dot
This commit is contained in:
@@ -4,7 +4,7 @@ void StatusDot::paint(QPainter *painter, const QStyleOptionViewItem &option, con
|
|||||||
{
|
{
|
||||||
QStyleOptionViewItem opt = option;
|
QStyleOptionViewItem opt = option;
|
||||||
initStyleOption(&opt, index);
|
initStyleOption(&opt, index);
|
||||||
int dotSize = qMin(opt.rect.width(), opt.rect.height()) * 0.5;
|
int dotSize = 15;
|
||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
painter->setRenderHint(QPainter::Antialiasing, true);
|
painter->setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user