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
caed6ffe
Commit
caed6ffe
authored
Jun 30, 2011
by
Didier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a thumbnail display issue
parent
2b856c4c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
14 deletions
+17
-14
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+3
-3
UBDisplayManager.cpp
src/core/UBDisplayManager.cpp
+2
-2
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+1
-1
UBDockPalette.cpp
src/gui/UBDockPalette.cpp
+1
-1
UBFloatingPalette.cpp
src/gui/UBFloatingPalette.cpp
+2
-2
XPDFRenderer.cpp
src/pdf/XPDFRenderer.cpp
+8
-5
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
caed6ffe
src/core/UBDisplayManager.cpp
View file @
caed6ffe
...
...
@@ -117,7 +117,7 @@ void UBDisplayManager::setAsControl(QWidget* pControlWidget )
mControlWidget
->
showFullScreen
();
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
mControlWidget
->
setAttribute
(
Qt
::
WA_MacNoShadow
);
//
mControlWidget->setAttribute(Qt::WA_MacNoShadow);
#endif
}
}
...
...
@@ -133,7 +133,7 @@ void UBDisplayManager::setAsDisplay(QWidget* pDisplayWidget)
mDisplayWidget
->
showFullScreen
();
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
mDisplayWidget
->
setAttribute
(
Qt
::
WA_MacNoShadow
);
//
mDisplayWidget->setAttribute(Qt::WA_MacNoShadow);
#endif
}
}
...
...
src/desktop/UBDesktopAnnotationController.cpp
View file @
caed6ffe
...
...
@@ -64,7 +64,7 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
mTransparentDrawingView
->
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
mTransparentDrawingView
->
setAttribute
(
Qt
::
WA_MacNoShadow
,
true
);
//
mTransparentDrawingView->setAttribute(Qt::WA_MacNoShadow, true);
#endif
mTransparentDrawingView
->
setWindowFlags
(
Qt
::
FramelessWindowHint
|
Qt
::
WindowStaysOnTopHint
|
Qt
::
Window
);
mTransparentDrawingView
->
setCacheMode
(
QGraphicsView
::
CacheNone
);
...
...
src/gui/UBDockPalette.cpp
View file @
caed6ffe
...
...
@@ -38,7 +38,7 @@ UBDockPalette::UBDockPalette(QWidget *parent, const char *name)
// !!!! Should be included into Windows after QT recompilation
#ifdef Q_WS_MAC
setAttribute
(
Qt
::
WA_MacNoShadow
);
//
setAttribute(Qt::WA_MacNoShadow);
#endif
}
...
...
src/gui/UBFloatingPalette.cpp
View file @
caed6ffe
...
...
@@ -33,8 +33,8 @@ UBFloatingPalette::UBFloatingPalette(Qt::Corner position, QWidget *parent)
setAttribute
(
Qt
::
WA_MacAlwaysShowToolWindow
);
#endif
#ifdef Q_WS_MAC
setAttribute
(
Qt
::
WA_MacNonActivatingToolWindow
);
setAttribute
(
Qt
::
WA_MacNoShadow
);
//
setAttribute(Qt::WA_MacNonActivatingToolWindow);
//
setAttribute(Qt::WA_MacNoShadow);
#endif
}
...
...
src/pdf/XPDFRenderer.cpp
View file @
caed6ffe
...
...
@@ -127,8 +127,9 @@ void XPDFRenderer::render(QPainter *p, int pageNumber, const QRectF &bounds)
qreal
xscale
=
p
->
worldTransform
().
m11
();
qreal
yscale
=
p
->
worldTransform
().
m22
();
bool
bZoomChanged
=
false
;
bool
bFirstThumbnail
=
false
;
if
(
mScaleX
!=
xscale
||
mScaleY
!=
yscale
)
if
(
fabs
(
mScaleX
-
xscale
)
>
0.1
||
fabs
(
mScaleY
-
yscale
)
>
0.1
)
{
mScaleX
=
xscale
;
mScaleY
=
yscale
;
...
...
@@ -138,9 +139,14 @@ void XPDFRenderer::render(QPainter *p, int pageNumber, const QRectF &bounds)
// First verify if the thumbnails and the pages are generated
if
(
!
bThumbGenerated
)
{
if
(
pageNumber
==
1
)
{
bFirstThumbnail
=
true
;
}
if
(
!
mThumbMap
[
pageNumber
-
1
])
{
// Generate the thumbnail
mThumbs
<<
*
createPDFImage
(
pageNumber
,
xscale
,
yscale
,
bounds
);
mThumbMap
[
pageNumber
-
1
]
=
true
;
...
...
@@ -164,10 +170,9 @@ void XPDFRenderer::render(QPainter *p, int pageNumber, const QRectF &bounds)
}
}
// Warning: verify pagenumber
QImage
pdfImage
;
if
(
!
bThumbGenerated
)
if
(
!
bThumbGenerated
||
bFirstThumbnail
)
{
pdfImage
=
mThumbs
.
at
(
pageNumber
-
1
);
}
...
...
@@ -176,8 +181,6 @@ void XPDFRenderer::render(QPainter *p, int pageNumber, const QRectF &bounds)
pdfImage
=
mNumPageToPageMap
[
pageNumber
];
}
pdfImage
.
rect
();
QTransform
savedTransform
=
p
->
worldTransform
();
p
->
resetTransform
();
p
->
drawImage
(
QPointF
(
savedTransform
.
dx
()
+
mSliceX
,
savedTransform
.
dy
()
+
mSliceY
),
pdfImage
);
...
...
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