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
a7e95315
Commit
a7e95315
authored
Oct 02, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue 912
parent
4ac3845d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
UBImportPDF.cpp
src/adaptors/UBImportPDF.cpp
+0
-1
UBDocumentManager.cpp
src/core/UBDocumentManager.cpp
+4
-0
No files found.
src/adaptors/UBImportPDF.cpp
View file @
a7e95315
...
@@ -70,7 +70,6 @@ QList<UBGraphicsItem*> UBImportPDF::import(const QUuid& uuid, const QString& fil
...
@@ -70,7 +70,6 @@ QList<UBGraphicsItem*> UBImportPDF::import(const QUuid& uuid, const QString& fil
for
(
int
pdfPageNumber
=
1
;
pdfPageNumber
<=
pdfPageCount
;
pdfPageNumber
++
)
for
(
int
pdfPageNumber
=
1
;
pdfPageNumber
<=
pdfPageCount
;
pdfPageNumber
++
)
{
{
UBApplication
::
showMessage
(
tr
(
"Importing page %1 of %2"
).
arg
(
pdfPageNumber
).
arg
(
pdfPageCount
),
true
);
UBApplication
::
showMessage
(
tr
(
"Importing page %1 of %2"
).
arg
(
pdfPageNumber
).
arg
(
pdfPageCount
),
true
);
result
<<
new
UBGraphicsPDFItem
(
pdfRenderer
,
pdfPageNumber
);
// deleted by the scene
result
<<
new
UBGraphicsPDFItem
(
pdfRenderer
,
pdfPageNumber
);
// deleted by the scene
}
}
return
result
;
return
result
;
...
...
src/core/UBDocumentManager.cpp
View file @
a7e95315
...
@@ -170,6 +170,10 @@ UBDocumentProxy* UBDocumentManager::importFile(const QFile& pFile, const QString
...
@@ -170,6 +170,10 @@ UBDocumentProxy* UBDocumentManager::importFile(const QFile& pFile, const QString
foreach
(
UBGraphicsItem
*
page
,
pages
)
foreach
(
UBGraphicsItem
*
page
,
pages
)
{
{
UBApplication
::
showMessage
(
tr
(
"Inserting page %1 of %2"
).
arg
(
++
nPage
).
arg
(
pages
.
size
()),
true
);
UBApplication
::
showMessage
(
tr
(
"Inserting page %1 of %2"
).
arg
(
++
nPage
).
arg
(
pages
.
size
()),
true
);
#ifdef Q_WS_MACX
//Workaround for issue 912
QApplication
::
processEvents
();
#endif
int
pageIndex
=
document
->
pageCount
();
int
pageIndex
=
document
->
pageCount
();
UBGraphicsScene
*
scene
=
UBPersistenceManager
::
persistenceManager
()
->
createDocumentSceneAt
(
document
,
pageIndex
);
UBGraphicsScene
*
scene
=
UBPersistenceManager
::
persistenceManager
()
->
createDocumentSceneAt
(
document
,
pageIndex
);
importAdaptor
->
placeImportedItemToScene
(
scene
,
page
);
importAdaptor
->
placeImportedItemToScene
(
scene
,
page
);
...
...
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