Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
lifo
Nicolas Ollinger
OpenBoard
Commits
3d3a040b
Commit
3d3a040b
authored
Sep 20, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Plain Diff
Merge fix for resizing of items from aleksei_kanash_dev.
parents
ab25ec27
be07b400
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
160 additions
and
144 deletions
+160
-144
UBBoardView.cpp
src/board/UBBoardView.cpp
+0
-3
UBGraphicsDelegateFrame.cpp
src/domain/UBGraphicsDelegateFrame.cpp
+157
-140
UBGraphicsDelegateFrame.h
src/domain/UBGraphicsDelegateFrame.h
+3
-1
No files found.
src/board/UBBoardView.cpp
View file @
3d3a040b
...
...
@@ -749,9 +749,6 @@ void UBBoardView::handleItemMousePress(QMouseEvent *event)
void
UBBoardView
::
handleItemMouseMove
(
QMouseEvent
*
event
)
{
if
(
!
movingItem
)
return
;
// determine item to move (maybee we need to move group of item or his parent.
movingItem
=
determineItemToMove
(
movingItem
);
...
...
src/domain/UBGraphicsDelegateFrame.cpp
View file @
3d3a040b
This diff is collapsed.
Click to expand it.
src/domain/UBGraphicsDelegateFrame.h
View file @
3d3a040b
...
...
@@ -39,7 +39,7 @@ class UBGraphicsDelegateFrame: public QGraphicsRectItem, public QObject
virtual
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
);
QPointF
getFixedPointFromPos
();
QSizeF
getResizeVector
(
qreal
moveX
,
qreal
moveY
);
void
resizeDelegate
(
qreal
moveX
,
qreal
moveY
);
QSizeF
resizeDelegate
(
qreal
moveX
,
qreal
moveY
);
virtual
void
mouseMoveEvent
(
QGraphicsSceneMouseEvent
*
event
);
virtual
void
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
);
...
...
@@ -105,6 +105,8 @@ class UBGraphicsDelegateFrame: public QGraphicsRectItem, public QObject
QPointF
mStartingPoint
;
QTransform
mInitialTransform
;
QSizeF
mOriginalSize
;
QPointF
mFixedPoint
;
QGraphicsSvgItem
*
mBottomRightResizeGripSvgItem
;
QGraphicsSvgItem
*
mBottomResizeGripSvgItem
;
...
...
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