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
bee03f1b
Commit
bee03f1b
authored
Dec 16, 2011
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
fb56485c
4d20f15d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+0
-1
UBBoardController.cpp
src/board/UBBoardController.cpp
+6
-0
UBDocumentTreeWidget.cpp
src/gui/UBDocumentTreeWidget.cpp
+12
-1
UBDocumentTreeWidget.h
src/gui/UBDocumentTreeWidget.h
+1
-1
UBThumbnailView.h
src/gui/UBThumbnailView.h
+1
-1
No files found.
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
bee03f1b
...
...
@@ -1039,7 +1039,6 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::persistScenes()
UBThumbnailAdaptor
::
persistScene
(
mProxy
->
persistencePath
(),
tmpScene
,
i
);
delete
tmpScene
;
mCurrentScene
->
setModified
(
false
);
}
...
...
src/board/UBBoardController.cpp
View file @
bee03f1b
...
...
@@ -777,6 +777,12 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
{
QString
mimeType
=
pContentTypeHeader
;
// In some cases "image/jpeg;charset=" is retourned by the drag-n-drop. That is
// why we will check if an ; exists and take the first part (the standard allows this kind of mimetype)
int
position
=
mimeType
.
indexOf
(
";"
);
if
(
position
!=
-
1
)
mimeType
=
mimeType
.
left
(
position
);
if
(
!
pSuccess
)
{
UBApplication
::
showMessage
(
tr
(
"Downloading content %1 failed"
).
arg
(
sourceUrl
.
toString
()));
...
...
src/gui/UBDocumentTreeWidget.cpp
View file @
bee03f1b
...
...
@@ -25,6 +25,10 @@
#include "core/UBDocumentManager.h"
#include "document/UBDocumentController.h"
#include "adaptors/UBThumbnailAdaptor.h"
#include "adaptors/UBSvgSubsetAdaptor.h"
#include "frameworks/UBFileSystemUtils.h"
#include "core/memcheck.h"
UBDocumentTreeWidget
::
UBDocumentTreeWidget
(
QWidget
*
parent
)
...
...
@@ -290,6 +294,13 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event)
}
UBPersistenceManager
::
persistenceManager
()
->
insertDocumentSceneAt
(
targetDocProxy
,
sceneClone
,
targetDocProxy
->
pageCount
());
//due to incorrect generation of thumbnails of invisible scene I've used direct copying of thumbnail files
//it's not universal and good way but it's faster
QString
from
=
sourceItem
.
documentProxy
()
->
persistencePath
()
+
UBFileSystemUtils
::
digitFileFormat
(
"/page%1.thumbnail.jpg"
,
sourceItem
.
sceneIndex
()
+
1
);
QString
to
=
targetDocProxy
->
persistencePath
()
+
UBFileSystemUtils
::
digitFileFormat
(
"/page%1.thumbnail.jpg"
,
targetDocProxy
->
pageCount
());
QFile
::
remove
(
to
);
QFile
::
copy
(
from
,
to
);
}
}
...
...
src/gui/UBDocumentTreeWidget.h
View file @
bee03f1b
...
...
@@ -23,7 +23,7 @@ class UBDocumentProxyTreeItem;
class
UBDocumentTreeWidget
:
public
QTreeWidget
{
Q_OBJECT
;
Q_OBJECT
public
:
UBDocumentTreeWidget
(
QWidget
*
parent
=
0
);
...
...
src/gui/UBThumbnailView.h
View file @
bee03f1b
...
...
@@ -22,7 +22,7 @@ class UBGraphicsScene;
class
UBThumbnailView
:
public
QGraphicsView
{
Q_OBJECT
;
Q_OBJECT
public
:
UBThumbnailView
();
...
...
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