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
1f9a4858
Commit
1f9a4858
authored
7 years ago
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced previous workaround on thumbnail views by a fix
parent
a28b5899
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
UBBoardController.cpp
src/board/UBBoardController.cpp
+1
-4
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+2
-1
UBBoardThumbnailsView.cpp
src/gui/UBBoardThumbnailsView.cpp
+4
-2
No files found.
src/board/UBBoardController.cpp
View file @
1f9a4858
...
...
@@ -1592,10 +1592,6 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
if
(
sceneChange
)
{
//should not be necessary, but no more time to investigate on it for the moment :
//for some reason, certain thumbnail views are not updating except if we load the document twice....
//the only workaroud I found for the moment..
emit
initThumbnailsRequired
(
this
);
emit
activeSceneChanged
();
}
}
...
...
@@ -1810,6 +1806,7 @@ void UBBoardController::selectionChanged()
{
updateActionStates
();
emit
pageSelectionChanged
(
activeSceneIndex
());
emit
updateThumbnailsRequired
();
}
...
...
This diff is collapsed.
Click to expand it.
src/core/UBPersistenceManager.cpp
View file @
1f9a4858
...
...
@@ -179,10 +179,11 @@ void UBPersistenceManager::errorString(QString error)
void
UBPersistenceManager
::
onSceneLoaded
(
QByteArray
scene
,
UBDocumentProxy
*
proxy
,
int
sceneIndex
)
{
Q_UNUSED
(
scene
);
qDebug
()
<<
"scene loaded "
<<
sceneIndex
;
QTime
time
;
time
.
start
();
mSceneCache
.
insert
(
proxy
,
sceneIndex
,
UBSvgSubsetAdaptor
::
loadScene
(
proxy
,
scene
));
mSceneCache
.
insert
(
proxy
,
sceneIndex
,
loadDocumentScene
(
proxy
,
sceneIndex
));
qDebug
()
<<
"millisecond for sceneCache "
<<
time
.
elapsed
();
}
...
...
This diff is collapsed.
Click to expand it.
src/gui/UBBoardThumbnailsView.cpp
View file @
1f9a4858
...
...
@@ -175,6 +175,7 @@ void UBBoardThumbnailsView::updateThumbnailsPos()
}
scene
()
->
setSceneRect
(
scene
()
->
itemsBoundingRect
());
update
();
}
void
UBBoardThumbnailsView
::
resizeEvent
(
QResizeEvent
*
event
)
...
...
@@ -312,11 +313,12 @@ void UBBoardThumbnailsView::dropEvent(QDropEvent *event)
{
Q_UNUSED
(
event
);
UBApplication
::
boardController
->
moveSceneToIndex
(
mDropSource
->
sceneIndex
(),
mDropTarget
->
sceneIndex
());
if
(
mDropSource
->
sceneIndex
()
!=
mDropTarget
->
sceneIndex
())
UBApplication
::
boardController
->
moveSceneToIndex
(
mDropSource
->
sceneIndex
(),
mDropTarget
->
sceneIndex
());
mDropSource
=
NULL
;
mDropTarget
=
NULL
;
mDropBar
->
hide
();
update
();
update
ThumbnailsPos
();
}
This diff is collapsed.
Click to expand it.
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