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
3254826c
Commit
3254826c
authored
Feb 03, 2014
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed call to hide toolbar for textItem
parent
d5fc130e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
UBGraphicsGroupContainerItem.cpp
src/domain/UBGraphicsGroupContainerItem.cpp
+5
-18
No files found.
src/domain/UBGraphicsGroupContainerItem.cpp
View file @
3254826c
...
...
@@ -82,7 +82,7 @@ void UBGraphicsGroupContainerItem::addToGroup(QGraphicsItem *item)
if
(
!
UBGraphicsItem
::
isLocked
(
this
)
&&
UBGraphicsItem
::
isLocked
(
item
))
{
Delegate
()
->
setLocked
(
true
);
}
}
}
else
{
Delegate
()
->
setUBFlag
(
GF_FLIPPABLE_ALL_AXIS
,
UBGraphicsItem
::
isFlippable
(
item
));
Delegate
()
->
setUBFlag
(
GF_REVOLVABLE
,
UBGraphicsItem
::
isRotatable
(
item
));
...
...
@@ -160,22 +160,9 @@ void UBGraphicsGroupContainerItem::removeFromGroup(QGraphicsItem *item)
void
UBGraphicsGroupContainerItem
::
deselectCurrentItem
()
{
if
(
mCurrentItem
)
{
switch
(
mCurrentItem
->
type
())
{
case
UBGraphicsTextItem
:
:
Type
:
{
dynamic_cast
<
UBGraphicsTextItem
*>
(
mCurrentItem
)
->
Delegate
()
->
getToolBarItem
()
->
hide
();
}
break
;
case
UBGraphicsMediaItem
:
:
Type
:
{
dynamic_cast
<
UBGraphicsMediaItem
*>
(
mCurrentItem
)
->
Delegate
()
->
getToolBarItem
()
->
hide
();
}
break
;
if
(
mCurrentItem
&&
mCurrentItem
->
type
()
==
UBGraphicsMediaItem
::
Type
){
dynamic_cast
<
UBGraphicsMediaItem
*>
(
mCurrentItem
)
->
Delegate
()
->
getToolBarItem
()
->
hide
();
}
mCurrentItem
->
setSelected
(
false
);
mCurrentItem
=
NULL
;
}
...
...
@@ -185,8 +172,8 @@ QRectF UBGraphicsGroupContainerItem::boundingRect() const
{
return
itemsBoundingRect
;
}
void
UBGraphicsGroupContainerItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
void
UBGraphicsGroupContainerItem
::
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
)
{
Q_UNUSED
(
widget
);
Q_UNUSED
(
painter
);
...
...
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