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
5f27f424
Commit
5f27f424
authored
Nov 16, 2018
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements on multiple selected documents handling
parent
570b5755
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
154 additions
and
98 deletions
+154
-98
UBDocumentContainer.cpp
src/document/UBDocumentContainer.cpp
+9
-2
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+143
-96
UBDocumentController.h
src/document/UBDocumentController.h
+2
-0
No files found.
src/document/UBDocumentContainer.cpp
View file @
5f27f424
...
...
@@ -137,8 +137,15 @@ void UBDocumentContainer::deleteThumbPage(int index)
void
UBDocumentContainer
::
updateThumbPage
(
int
index
)
{
mDocumentThumbs
[
index
]
=
UBThumbnailAdaptor
::
get
(
mCurrentDocument
,
index
);
emit
documentPageUpdated
(
index
);
if
(
mDocumentThumbs
.
size
()
>
index
)
{
mDocumentThumbs
[
index
]
=
UBThumbnailAdaptor
::
get
(
mCurrentDocument
,
index
);
emit
documentPageUpdated
(
index
);
}
else
{
qDebug
()
<<
"error [updateThumbPage] : index > mDocumentThumbs' size."
;
}
}
void
UBDocumentContainer
::
insertThumbPage
(
int
index
)
...
...
src/document/UBDocumentController.cpp
View file @
5f27f424
This diff is collapsed.
Click to expand it.
src/document/UBDocumentController.h
View file @
5f27f424
...
...
@@ -434,6 +434,8 @@ class UBDocumentController : public UBDocumentContainer
void
createNewDocumentGroup
();
void
deleteSelectedItem
();
void
deleteSingleItem
(
QModelIndex
index
,
UBDocumentTreeModel
*
docModel
);
void
deleteMultipleItems
(
QModelIndexList
indexes
,
UBDocumentTreeModel
*
docModel
);
void
emptyFolder
(
const
QModelIndex
&
index
,
DeletionType
pDeletionType
=
MoveToTrash
);
void
deleteIndexAndAssociatedData
(
const
QModelIndex
&
pIndex
);
void
renameSelectedItem
();
...
...
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