[TD] Remove deprecated Qt < 5.9 code
This commit is contained in:
@@ -26,9 +26,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
//#if QT_VERSION >= 0x050000
|
||||
//#include <QGuiApplication>
|
||||
//#endif
|
||||
|
||||
#include <QImage>
|
||||
#include <QPixmap>
|
||||
@@ -317,18 +315,9 @@ double Grabber3d::getViewerScale(Gui::View3DInventorViewer* viewer)
|
||||
|
||||
//accurate dpmm for screen is not easily acquired!
|
||||
// double qtpxmm = 96;
|
||||
//#if QT_VERSION >=050000
|
||||
// QScreen *screen = QGuiApplication::primaryScreen();
|
||||
// double qtppi = screen->physicalDotsPerInch(); //~111 dpi
|
||||
// qtpxmm = qtppi / 25.4;
|
||||
//#else
|
||||
//// QSize widgetSize = viewer->size();
|
||||
//// int qtDpiXLog = viewer->logicalDpiX();
|
||||
//// int qtDpiYLog = viewer->logicalDpiY();
|
||||
// int qtDpiXPhys = viewer->physicalDpiX();
|
||||
// int qtDpiYPhys = viewer->physicalDpiY();
|
||||
// qtpxmm = ((qtDpiXPhys + qtDpiYPhys) / 2.0) / 25.4;
|
||||
//#endif
|
||||
|
||||
SbViewportRegion vpRegion = viewer->getSoRenderManager()->getViewportRegion();
|
||||
SbVec2s winSizePx = vpRegion.getWindowSize(); //pixel coords
|
||||
@@ -361,18 +350,9 @@ double Grabber3d::getPaperScale(Gui::View3DInventorViewer* viewer,
|
||||
|
||||
//accurate dpmm for screen is not easily acquired!
|
||||
// double qtpxmm = 96;
|
||||
//#if QT_VERSION >=050000
|
||||
// QScreen *screen = QGuiApplication::primaryScreen();
|
||||
// double qtppi = screen->physicalDotsPerInch(); //~111 dpi
|
||||
// qtpxmm = qtppi / 25.4;
|
||||
//#else
|
||||
//// QSize widgetSize = viewer->size();
|
||||
//// int qtDpiXLog = viewer->logicalDpiX();
|
||||
//// int qtDpiYLog = viewer->logicalDpiY();
|
||||
// int qtDpiXPhys = viewer->physicalDpiX();
|
||||
// int qtDpiYPhys = viewer->physicalDpiY();
|
||||
// qtpxmm = ((qtDpiXPhys + qtDpiYPhys) / 2.0) / 25.4;
|
||||
//#endif
|
||||
|
||||
SbViewportRegion vpRegion = viewer->getSoRenderManager()->getViewportRegion();
|
||||
SbVec2s winSizePx = vpRegion.getWindowSize(); //pixel coords
|
||||
|
||||
Reference in New Issue
Block a user