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
cd1b2e00
Commit
cd1b2e00
authored
Feb 19, 2018
by
Clément Fauconnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added code lost in auto-resolved conflicts during my last 'stash apply'
parent
08e718f5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
UBBoardController.cpp
src/board/UBBoardController.cpp
+2
-4
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+1
-1
UBDocumentContainer.h
src/document/UBDocumentContainer.h
+1
-1
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+2
-2
UBThumbnailWidget.cpp
src/gui/UBThumbnailWidget.cpp
+4
-2
No files found.
src/board/UBBoardController.cpp
View file @
cd1b2e00
...
...
@@ -773,7 +773,7 @@ void UBBoardController::deleteScene(int nIndex)
mDeletingSceneIndex
=
nIndex
;
QApplication
::
setOverrideCursor
(
QCursor
(
Qt
::
WaitCursor
));
persistCurrentScene
();
showMessage
(
tr
(
"Delet
e page %1 from document"
).
arg
(
nIndex
),
true
);
showMessage
(
tr
(
"Delet
ing page %1"
).
arg
(
nIndex
+
1
),
true
);
QList
<
int
>
scIndexes
;
scIndexes
<<
nIndex
;
...
...
@@ -783,7 +783,7 @@ void UBBoardController::deleteScene(int nIndex)
if
(
nIndex
>=
pageCount
())
nIndex
=
pageCount
()
-
1
;
setActiveDocumentScene
(
nIndex
);
showMessage
(
tr
(
"Page %1 deleted"
).
arg
(
nIndex
));
showMessage
(
tr
(
"Page %1 deleted"
).
arg
(
nIndex
+
1
));
QApplication
::
restoreOverrideCursor
();
mDeletingSceneIndex
=
-
1
;
}
...
...
@@ -1564,8 +1564,6 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy,
setDocument
(
pDocumentProxy
,
forceReload
);
persistCurrentScene
();
updateSystemScaleFactor
();
mControlView
->
setScene
(
mActiveScene
);
...
...
src/core/UBPersistenceManager.cpp
View file @
cd1b2e00
...
...
@@ -505,6 +505,7 @@ void UBPersistenceManager::deleteDocumentScenes(UBDocumentProxy* proxy, const QL
QFile
::
rename
(
source
,
target
);
}
UBApplication
::
showMessage
(
"Moving page to trash folder..."
);
insertDocumentSceneAt
(
trashDocProxy
,
scene
,
trashDocProxy
->
pageCount
());
}
}
...
...
@@ -777,7 +778,6 @@ void UBPersistenceManager::persistDocumentScene(UBDocumentProxy* pDocumentProxy,
if
(
pDocumentProxy
->
isModified
())
persistDocumentMetadata
(
pDocumentProxy
,
forceImmediateSaving
);
UBApplication
::
showMessage
(
tr
(
"Saving thumbnail of page %1"
).
arg
(
pSceneIndex
+
1
));
UBThumbnailAdaptor
::
persistScene
(
pDocumentProxy
,
pScene
,
pSceneIndex
);
if
(
forceImmediateSaving
)
UBSvgSubsetAdaptor
::
persistScene
(
pDocumentProxy
,
pScene
,
pSceneIndex
);
...
...
src/document/UBDocumentContainer.h
View file @
cd1b2e00
...
...
@@ -44,7 +44,7 @@ class UBDocumentContainer : public QObject
void
setDocument
(
UBDocumentProxy
*
document
,
bool
forceReload
=
false
);
UBDocumentProxy
*
selectedDocument
(){
return
mCurrentDocument
;}
int
pageCount
(){
return
m
DocumentThumbs
.
size
();}
int
pageCount
(){
return
m
CurrentDocument
->
pageCount
();}
const
QPixmap
*
pageAt
(
int
index
){
return
mDocumentThumbs
[
index
];}
static
int
pageFromSceneIndex
(
int
sceneIndex
);
...
...
src/document/UBDocumentController.cpp
View file @
cd1b2e00
...
...
@@ -168,7 +168,7 @@ void UBDocumentController::selectDocument(UBDocumentProxy* proxy, bool setAsCurr
if
(
selected
)
{
setDocument
(
proxy
);
reloadThumbnails
(
);
emit
documentThumbnailsUpdated
(
this
);
selected
->
setSelected
(
true
);
...
...
@@ -1441,7 +1441,7 @@ void UBDocumentController::documentSceneChanged(UBDocumentProxy* proxy, int pSce
if
(
proxy
==
selectedDocumentProxy
())
{
reloadThumbnails
(
);
emit
documentThumbnailsUpdated
(
this
);
}
}
...
...
src/gui/UBThumbnailWidget.cpp
View file @
cd1b2e00
...
...
@@ -907,13 +907,15 @@ void UBDraggableThumbnail::mousePressEvent(QGraphicsSceneMouseEvent *event)
event
->
accept
();
duplicatePage
();
}
else
{
event
->
ignore
();
}
/*
else if(movableUp() && getIcon("moveUp")->triggered(p.x()))
moveUpPage();
else if (movableDown() && getIcon("moveDown")->triggered(p.x()))
moveDownPage();*/
event
->
ignore
();
}
else
{
...
...
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