mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
1564fe7bf7
commit
c8fa0ca9b3
@ -344,7 +344,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));
|
||||
bool horizontal = (option->state & QStyle::State_Horizontal) ? true : false;
|
||||
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);
|
||||
const int available_diameter = horizontal ? option->rect.width() : option->rect.height();
|
||||
|
Loading…
x
Reference in New Issue
Block a user