Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PeTrack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pedestrian Dynamics Empiricism
PeTrack
Merge requests
!199
Resolve "GridItem can be moved without being shown"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "GridItem can be moved without being shown"
297-griditem-can-be-moved-without-being-shown
into
master
Overview
0
Commits
2
Pipelines
4
Changes
1
Merged
l.dressen
requested to merge
297-griditem-can-be-moved-without-being-shown
into
master
2 years ago
Overview
0
Commits
2
Pipelines
4
Changes
1
Expand
Closes
#297 (closed)
Edited
2 years ago
by
l.dressen
0
0
Merge request reports
Compare
master
version 2
b6f936a0
2 years ago
version 1
c0aa445c
2 years ago
master (base)
and
latest version
latest version
e2cd334b
2 commits,
2 years ago
version 2
b6f936a0
2 commits,
2 years ago
version 1
c0aa445c
1 commit,
2 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/gridItem.cpp
+
2
−
2
Options
@@ -65,7 +65,7 @@ QRectF GridItem::boundingRect() const
// event, of moving mouse while pressing a mouse button
void
GridItem
::
mouseMoveEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
if
(
!
mControlWidget
->
getCalibGridFix
())
if
(
!
mControlWidget
->
getCalibGridFix
()
&&
mControlWidget
->
getCalibGridShow
()
)
{
setCursor
(
Qt
::
SizeBDiagCursor
);
QPointF
diff
=
event
->
scenePos
()
-
@@ -118,7 +118,7 @@ void GridItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void
GridItem
::
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
if
(
!
mControlWidget
->
getCalibGridFix
())
if
(
!
mControlWidget
->
getCalibGridFix
()
&&
mControlWidget
->
getCalibGridShow
()
)
{
if
(
event
->
button
()
==
Qt
::
LeftButton
)
{
Loading