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
08e7ae84
Commit
08e7ae84
authored
Sep 25, 2017
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert previous fix + code cleaning
parent
79544999
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
UBBoardController.cpp
src/board/UBBoardController.cpp
+0
-1
UBDocumentContainer.cpp
src/document/UBDocumentContainer.cpp
+9
-0
UBDocumentContainer.h
src/document/UBDocumentContainer.h
+1
-0
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+0
-1
No files found.
src/board/UBBoardController.cpp
View file @
08e7ae84
...
...
@@ -1542,7 +1542,6 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
mActiveSceneIndex
=
index
;
setDocument
(
pDocumentProxy
,
forceReload
);
emit
initThumbnailsRequired
(
this
);
updateSystemScaleFactor
();
mControlView
->
setScene
(
mActiveScene
);
...
...
src/document/UBDocumentContainer.cpp
View file @
08e7ae84
...
...
@@ -52,6 +52,7 @@ void UBDocumentContainer::setDocument(UBDocumentProxy* document, bool forceReloa
{
mCurrentDocument
=
document
;
emit
initThumbnailsRequired
(
this
);
emit
documentSet
(
mCurrentDocument
);
reloadThumbnails
();
}
...
...
@@ -103,8 +104,16 @@ void UBDocumentContainer::addPage(int index)
emit
addThumbnailRequired
(
this
,
index
);
}
void
UBDocumentContainer
::
clearThumbPage
()
{
qDeleteAll
(
mDocumentThumbs
);
mDocumentThumbs
.
clear
();
}
void
UBDocumentContainer
::
initThumbPage
()
{
clearThumbPage
();
for
(
int
i
=
0
;
i
<
selectedDocument
()
->
pageCount
();
i
++
)
insertThumbPage
(
i
);
}
...
...
src/document/UBDocumentContainer.h
View file @
08e7ae84
...
...
@@ -53,6 +53,7 @@ class UBDocumentContainer : public QObject
void
duplicatePages
(
QList
<
int
>&
pageIndexes
);
bool
movePageToIndex
(
int
source
,
int
target
);
void
deletePages
(
QList
<
int
>&
pageIndexes
);
void
clearThumbPage
();
void
initThumbPage
();
void
addPage
(
int
index
);
void
updatePage
(
int
index
);
...
...
src/document/UBDocumentController.cpp
View file @
08e7ae84
...
...
@@ -476,7 +476,6 @@ void UBDocumentController::openSelectedItem()
if
(
proxy
&&
isOKToOpenDocument
(
proxy
))
{
UBApplication
::
applicationController
->
showBoard
();
UBApplication
::
applicationController
->
showBoard
();
}
}
}
...
...
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