From: tbaudier Date: Fri, 19 Feb 2016 10:36:51 +0000 (+0100) Subject: Debug for MacOSX Retina X-Git-Tag: v1.4.0~53 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9cc0db2576ab7b5b11e3183340c2447af1cadf0d;p=clitk.git Debug for MacOSX Retina --- diff --git a/vv/vvSegmentationDialog.cxx b/vv/vvSegmentationDialog.cxx index d4bea5b..b538b9d 100644 --- a/vv/vvSegmentationDialog.cxx +++ b/vv/vvSegmentationDialog.cxx @@ -61,6 +61,10 @@ #include #include +#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() diff --git a/vv/vvSurfaceViewerDialog.cxx b/vv/vvSurfaceViewerDialog.cxx index e8a6acb..da0381a 100644 --- a/vv/vvSurfaceViewerDialog.cxx +++ b/vv/vvSurfaceViewerDialog.cxx @@ -35,6 +35,10 @@ #include #include +#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()