Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Public
PASSOFT
SOHViewer
Commits
7d55a28d
Commit
7d55a28d
authored
2 years ago
by
Lan Dam
Browse files
Options
Downloads
Patches
Plain Diff
Disable shiftclick on TimePowerSquareWidget
parent
27f9eef4
No related branches found
Branches containing commit
No related tags found
1 merge request
!50
Disable shiftclick on TimePowerSquareWidget
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+9
-2
9 additions, 2 deletions
...onviewer/view/plotting/plotting_widget/plotting_widget.py
with
9 additions
and
2 deletions
sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+
9
−
2
View file @
7d55a28d
...
...
@@ -309,15 +309,22 @@ class PlottingWidget(QtWidgets.QScrollArea):
When click mouse on the current plottingWidget, SOHView will loop
through different plottingWidgets to do the same task for
interaction:
+ shift+click: call on_shift_click() to do zooming
+ shift+click: call on_shift_click() to do zooming. This is
disregarded in TimePowerSquareWidget because it isn
'
t subjected
to be zoomed in.
+ ctrl+click or cmd+click in mac: call on_ctrl_cmd_click() to show
ruler
:param event: button_press_event - mouse click event
"""
modifiers
=
event
.
guiEvent
.
modifiers
()
if
(
modifiers
==
QtCore
.
Qt
.
ShiftModifier
and
self
.
name
==
"
timepowersquaredwidget
"
):
# not start zooming from TimePowerSquareWidget
return
try
:
# on_
pick
() take place after on_pick_
on_artis
t where
# on_
button_press_event
() take place after on_pick_
even
t where
# tps_t was assigned in TimePowerSquareWidget
xdata
=
self
.
tps_t
except
AttributeError
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment