Commit graph

15 commits

Author SHA1 Message Date
Aleix Pol f42a3bad65 Drop libkscreen dependency
Drops the x11 fallback. We were falling back to QX11Extras that were in
fact using QScreen internally.
Also remove the QDesktopWidget fallbacks for the same reason.
Drops some API for fetching the dpi and unifies it with ::realDpi(QWidget).

Based on Sebas's patch.
Reviewed by Albert.

REVIEW: 126913
2016-01-30 18:15:07 +01:00
Montel Laurent 5da7c5f77d port to qCDebug. Autogenerate export headers 2014-10-27 22:35:06 +01:00
Eugene Shalygin ed35594627 Use DPI of current screen for PDF rendering
Includes some fixes from Albert:
 * kscreen cmake fixes
   Don't make libkscreen mandatory, give the proper version we need
 * Fix the @since
 * Kill Resolution and use a QSizeF
   I first thought QSizeF didn't make sense, but well what's a dpi if not a number of pixels in width and some others in height?
 * Remove unwanted const
 * Remove unneeded utils.h includes
 * Fix comments on realDPIXY()
 * Make it compile in non X11

REVIEW: 111829
2014-01-13 01:37:56 +01:00
Pino Toscano c05523da2b fix #include paths in core headers to other core headers to be relative
... and with double quotes brackets, so they can properly include each other without relying on the compiler include path
2011-06-01 10:51:31 +02:00
Pino Toscano cd9a4f248b SVN_SILENT fix doxygen @since tag
svn path=/trunk/KDE/kdegraphics/okular/; revision=979130
2009-06-09 01:03:50 +00:00
Pino Toscano 399f64beef Introduce realDpi{X,Y}(), that (on X11) can return the ral DPI values w/o any Xrdb setting.
Otherwise, they return the same as dpi{X,Y}().

svn path=/trunk/KDE/kdegraphics/okular/; revision=979128
2009-06-09 00:45:02 +00:00
Pino Toscano 9731d3f866 add simple method for white borders detection, patch by by kde2eran@tromer.org, thanks!
CCMAIL: kde2eran@tromer.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=809465
2008-05-18 23:03:17 +00:00
Tobias Koenig ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Tobias Koenig 57139e3192 API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Pino Toscano cdf6d44742 forward declaration & apidox fixing
svn path=/trunk/playground/graphics/okular/; revision=600104
2006-10-29 15:21:03 +00:00
Holger Freyther 569e93b929 oKular: Add method(s) to get the DPI of the primary screen
some generators use QX11Info to get the DPI of the display.
    Obviously this is not portable, add a getDpi? method to utils
    which can be used by generators.
    Currently only the DVI converter is converted.
    The CMakeLists.txt change assumes that non existing variables
    gets expanded to empty strings.

svn path=/trunk/playground/graphics/okular/; revision=600099
2006-10-29 15:08:18 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Dirk Mueller 9f6f989e1c pedantic--
svn path=/trunk/playground/graphics/okular/; revision=584828
2006-09-15 16:11:07 +00:00
Pino Toscano 0a9a730f9d const
svn path=/trunk/playground/graphics/okular/; revision=556728
2006-07-01 12:47:48 +00:00
Pino Toscano bca4b9eb77 Create a okularUtils namespace with utility functions for generators (and maybe not only for them).
svn path=/trunk/playground/graphics/okular/; revision=556608
2006-06-30 21:42:41 +00:00