|
|
|
@ -12,7 +12,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
class QRect; |
|
|
|
class QRect; |
|
|
|
class QImage; |
|
|
|
class QImage; |
|
|
|
class QWidget; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Okular |
|
|
|
namespace Okular |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -31,14 +30,14 @@ public: |
|
|
|
static QRect rotateRect(const QRect source, int width, int height, int orientation); |
|
|
|
static QRect rotateRect(const QRect source, int width, int height, int orientation); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Return the real DPI of the display containing given widget |
|
|
|
* Return the real DPI of the display containing given window |
|
|
|
* |
|
|
|
* |
|
|
|
* On X11, it can indicate the real horizontal DPI value without any Xrdb |
|
|
|
* On X11, it can indicate the real horizontal DPI value without any Xrdb |
|
|
|
* setting. Otherwise, returns the same as realDpiX/Y(), |
|
|
|
* setting. Otherwise, returns the same as realDpiX/Y(), |
|
|
|
* |
|
|
|
* |
|
|
|
* @since 0.19 (KDE 4.13) |
|
|
|
* @since 22.04 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static QSizeF realDpi(QWidget *widgetOnScreen); |
|
|
|
static QSizeF realDpi(const QWindow *windowOnScreen); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Compute the smallest rectangle that contains all non-white pixels in image), |
|
|
|
* Compute the smallest rectangle that contains all non-white pixels in image), |
|
|
|
|