]> Creatis software - clitk.git/commitdiff
Debug for MacOSX Retina
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 19 Feb 2016 10:36:51 +0000 (11:36 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 19 Feb 2016 10:36:51 +0000 (11:36 +0100)
vv/vvSegmentationDialog.cxx
vv/vvSurfaceViewerDialog.cxx

index d4bea5baa088d8728298f9c364b995859710fa0f..b538b9d6919e7bbaa57bbfd6549ddd5bfb48b3b0 100644 (file)
 #include <QMessageBox>
 #include <QFileDialog>
 
+#ifdef Q_OS_OSX
+# include "vvOSXHelper.h"
+#endif
+
 //====================================================================
 vvSegmentationDialog::vvSegmentationDialog(QWidget * parent, Qt::WindowFlags f)
   :QDialog(parent,f), Ui::vvSegmentationDialog()
@@ -102,6 +106,10 @@ vvSegmentationDialog::vvSegmentationDialog(QWidget * parent, Qt::WindowFlags f)
   erodeButton->setEnabled(0);
   dilateButton->setEnabled(0);
   infoLabel->setText("Select Up and Down threshold before clicking binarise !");
+
+#ifdef Q_OS_OSX
+  disableGLHiDPI(viewWidget->winId());
+#endif
 }
 
 vvSegmentationDialog::~vvSegmentationDialog()
index e8a6acb231dc06bc6f01cd790a60f85b0b201aa9..da0381a4521c918c375c9fd027b74c1026d12c67 100644 (file)
 #include <QMessageBox>
 #include <QFileDialog>
 
+#ifdef Q_OS_OSX
+# include "vvOSXHelper.h"
+#endif
+
 //----------------------------------------------------------------------------
 class vvManagerCallback : public vtkCommand
 {
@@ -76,6 +80,10 @@ vvSurfaceViewerDialog::vvSurfaceViewerDialog(QWidget * parent, Qt::WindowFlags f
   mCurrentTime = 0;
 
   connect(loadButton,SIGNAL(clicked()),this,SLOT(LoadSurface()));
+
+#ifdef Q_OS_OSX
+  disableGLHiDPI(renderWidget->winId());
+#endif
 }
 
 vvSurfaceViewerDialog::~vvSurfaceViewerDialog()