mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-03 18:18:31 -04:00
Ticker Slider; fixed roundf
This commit is contained in:
parent
e7dc0f9b53
commit
f5e476cc81
@ -47,7 +47,7 @@ void TickedSlider::paintEvent(QPaintEvent *ev __attribute__((unused)))
|
||||
{
|
||||
for (int i = minimum(); i <= maximum(); i += interval)
|
||||
{
|
||||
int x = round((double)((double)((double)(i - this->minimum()) / (double)(this->maximum() - this->minimum())) * (double)(this->width() - handle.width()) + (double)(handle.width() / 2.0))) - 1;
|
||||
int x = roundf((double)((double)((double)(i - this->minimum()) / (double)(this->maximum() - this->minimum())) * (double)(this->width() - handle.width()) + (double)(handle.width() / 2.0))) - 1;
|
||||
int h = 4;
|
||||
p.setPen(m_tickColor);
|
||||
if (tickPosition() == TicksBothSides || tickPosition() == TicksAbove)
|
||||
|
Loading…
Reference in New Issue
Block a user