Skip to content

Commit

Permalink
fix font size and remove unwanted msleep
Browse files Browse the repository at this point in the history
  • Loading branch information
DSCaskey committed Aug 1, 2024
1 parent 259d766 commit 22e950f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,11 @@
</item>
<item>
<widget class="QCheckBox" name="autoscroll_CheckBox">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Autoscroll</string>
</property>
Expand Down Expand Up @@ -2050,6 +2055,11 @@ border-radius: 4px;
</item>
<item>
<widget class="QGroupBox" name="mouseWheel_GroupBox">
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="title">
<string>Mouse wheel</string>
</property>
Expand Down
2 changes: 0 additions & 2 deletions src/libs/vwidgets/vmaingraphicsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,6 @@ void VMainGraphicsView::mouseMoveEvent(QMouseEvent *event)
horz->setValue(horz->value() + (isRightToLeft() ? delta.x() : -delta.x()));
vert->setValue(vert->value() - delta.y());
m_ptStartPos = event->pos();
unsigned long delay = static_cast<unsigned long>(200 + (200 - qApp->Settings()->getAutoScrollSpeed()));
QThread::msleep(10000); // delay is the inverse of the speed
}
else if ( isRubberBandActive )
{
Expand Down

0 comments on commit 22e950f

Please sign in to comment.