Finishing of document properties

This commit is contained in:
Jakub Melka
2019-12-22 16:33:50 +01:00
parent f48709c8c5
commit 1fafd3835c
8 changed files with 249 additions and 7 deletions

View File

@ -32,6 +32,14 @@ public:
/// Converts size in MM to pixel size
static int getPixelSize(QWidget* widget, pdf::PDFReal sizeMM);
/// Scale horizontal DPI value
static int scaleDPI_x(QWidget* widget, int unscaledSize);
/// Scales widget based on DPI
/// \param widget Widget to be scaled
/// \param unscaledSize Unscaled size of the widget
static void scaleWidget(QWidget* widget, QSize unscaledSize);
};
} // namespace pdfviewer