mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Smooth the separator handle dots by antialiasing them
This commit is contained in:
parent
e8f27b722c
commit
4cb02b4d4d
@ -287,6 +287,7 @@ void CalibreStyle::drawControl(ControlElement element, const QStyleOption *optio
|
||||
painter->drawRect(option->rect);
|
||||
// draw the dots
|
||||
painter->setBrush(option->palette.color(QPalette::ColorGroup::Normal, QPalette::ColorRole::Shadow));
|
||||
painter->setRenderHint(QPainter::Antialiasing, true);
|
||||
const bool horizontal = (option->state & QStyle::State_Horizontal) ? true : false;
|
||||
static const int dot_count = 4;
|
||||
const int handle_width = pixelMetric(PM_SplitterWidth, option, widget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user