Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
f7ba5790
Commit
f7ba5790
authored
Oct 12, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntax fixes
parent
2a787f66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
preferences.py
blink/preferences.py
+3
-3
No files found.
blink/preferences.py
View file @
f7ba5790
...
@@ -106,15 +106,15 @@ class SIPPortEditor(QSpinBox):
...
@@ -106,15 +106,15 @@ class SIPPortEditor(QSpinBox):
def
stepBy
(
self
,
steps
):
def
stepBy
(
self
,
steps
):
value
=
self
.
value
()
value
=
self
.
value
()
sibling_value
=
self
.
sibling
.
value
()
sibling_value
=
self
.
sibling
.
value
()
if
value
+
steps
==
sibling_value
!=
0
:
if
value
+
steps
==
sibling_value
!=
0
:
steps
+=
steps
/
abs
(
steps
)
# add one more unit in the right direction
steps
+=
steps
/
abs
(
steps
)
# add one more unit in the right direction
if
0
<
value
+
steps
<
1024
:
if
0
<
value
+
steps
<
1024
:
if
steps
<
0
:
if
steps
<
0
:
steps
=
-
value
steps
=
-
value
else
:
else
:
steps
=
1024
-
value
steps
=
1024
-
value
if
value
+
steps
==
sibling_value
!=
0
:
if
value
+
steps
==
sibling_value
!=
0
:
steps
+=
steps
/
abs
(
steps
)
# add one more unit in the right direction
steps
+=
steps
/
abs
(
steps
)
# add one more unit in the right direction
return
super
(
SIPPortEditor
,
self
)
.
stepBy
(
steps
)
return
super
(
SIPPortEditor
,
self
)
.
stepBy
(
steps
)
def
validate
(
self
,
input
,
pos
):
def
validate
(
self
,
input
,
pos
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment