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
5343f6b9
Commit
5343f6b9
authored
Oct 12, 2017
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new workaround for disconnected thumbnail views... to change ASAP
parent
ce2f4259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
UBBoardController.cpp
src/board/UBBoardController.cpp
+8
-0
UBBoardThumbnailsView.cpp
src/gui/UBBoardThumbnailsView.cpp
+7
-1
No files found.
src/board/UBBoardController.cpp
View file @
5343f6b9
...
...
@@ -1567,10 +1567,18 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
updateBackgroundActionsState
(
mActiveScene
->
isDarkBackground
(),
mActiveScene
->
pageBackground
());
if
(
documentChange
)
{
UBGraphicsTextItem
::
lastUsedTextColor
=
QColor
();
}
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
();
}
}
...
...
src/gui/UBBoardThumbnailsView.cpp
View file @
5343f6b9
...
...
@@ -127,7 +127,13 @@ void UBBoardThumbnailsView::addThumbnail(UBDocumentContainer* source, int i)
void
UBBoardThumbnailsView
::
clearThumbnails
()
{
qDeleteAll
(
mThumbnails
);
for
(
int
i
=
0
;
i
<
mThumbnails
.
size
();
i
++
)
{
scene
()
->
removeItem
(
mThumbnails
.
at
(
i
)
->
pageNumber
());
scene
()
->
removeItem
(
mThumbnails
.
at
(
i
));
mThumbnails
.
at
(
i
)
->
deleteLater
();
}
mThumbnails
.
clear
();
}
...
...
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