Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Nov 4, 2020
1 parent af45be5 commit 533c38a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3001,13 +3001,9 @@ void SimulationExperimentViewSimulationWidget::delayWheelCreated(QwtWheel *pWhee

QRect availableGeometry = qApp->primaryScreen()->availableGeometry();

pWheel->setBorderWidth(0);
pWheel->setFixedSize(int(0.07*availableGeometry.width()),
mToolBarWidget->height()/2);
pWheel->setFocusPolicy(Qt::NoFocus);
pWheel->setRange(0.0, 55.0);
pWheel->setWheelBorderWidth(0);

pWheel->setValue(mDelayWheelValue);

// (Re)translate ourselves by updating ourselves
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ QWidget * ToolBarWidgetWheelWidgetAction::createWidget(QWidget *pParent)

auto res = new QwtWheel(pParent);

res->setBorderWidth(0);
res->setFocusPolicy(Qt::NoFocus);
res->setWheelBorderWidth(0);

connect(res, &QwtWheel::valueChanged,
this, &ToolBarWidgetWheelWidgetAction::valueChanged);
connect(res, &QwtWheel::wheelReleased,
Expand Down

0 comments on commit 533c38a

Please sign in to comment.