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
f093f9a3
Commit
f093f9a3
authored
Dec 07, 2011
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sankore 360 raising of background fixed
parent
ce52871b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+14
-6
No files found.
src/domain/UBGraphicsScene.cpp
View file @
f093f9a3
...
...
@@ -151,24 +151,31 @@ UBGraphicsScene::~UBGraphicsScene()
void
UBGraphicsScene
::
selectionChangedProcessing
()
{
if
(
selectedItems
().
count
())
UBApplication
::
showMessage
(
"ZValue is "
+
QString
::
number
(
selectedItems
().
first
()
->
zValue
(),
'f'
));
// if (selectedItems().count())
// UBApplication::showMessage("ZValue is " + QString::number(selectedItems().first()->zValue(), 'f'));
QList
<
QGraphicsItem
*>
allItemsList
=
items
();
for
(
int
i
=
0
;
i
<
allItemsList
.
size
();
i
++
)
{
QGraphicsItem
*
nextItem
=
allItemsList
.
at
(
i
);
qreal
zValue
=
nextItem
->
zValue
();
//Temporary stub. Due to ugly z-order implementation I need to do this (sankore 360)
//z-order behavior should be reimplemented and this stub should be deleted
if
(
nextItem
==
mBackgroundObject
)
continue
;
//Temporary stub end (sankore 360)
// qreal zValue = nextItem->zValue();
nextItem
->
setZValue
(
qreal
(
1
));
qDebug
()
<<
QString
(
" %1 "
).
arg
(
i
)
<<
QString
(
" %1 "
).
arg
(
zValue
);
//
qDebug() << QString(" %1 ").arg(i) << QString(" %1 ").arg(zValue);
}
QList
<
QGraphicsItem
*>
selItemsList
=
selectedItems
();
for
(
int
i
=
0
;
i
<
selItemsList
.
size
();
i
++
)
{
QGraphicsItem
*
nextItem
=
selItemsList
.
at
(
i
);
qreal
zValue
=
nextItem
->
zValue
();
//
qreal zValue = nextItem->zValue();
nextItem
->
setZValue
(
2
);
qDebug
()
<<
QString
(
" >>> %1 <<< "
).
arg
(
i
)
<<
QString
(
" >>> %1 <<< "
).
arg
(
zValue
);
//
qDebug() << QString(" >>> %1 <<< ").arg(i) << QString(" >>> %1 <<< ").arg(zValue);
}
}
...
...
@@ -1420,6 +1427,7 @@ QGraphicsItem* UBGraphicsScene::setAsBackgroundObject(QGraphicsItem* item, bool
item
->
setData
(
UBGraphicsItemData
::
ItemLayerType
,
UBItemLayerType
::
FixedBackground
);
item
->
setZValue
(
backgroundLayerStart
);
UBApplication
::
showMessage
(
"ZValue of the background is "
+
QString
::
number
(
item
->
zValue
(),
'f'
));
if
(
pAdaptTransformation
)
{
...
...
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