Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions contourplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,11 @@ ContourPlot::ContourPlot( QWidget *parent, ContourTools *tools, bool minimal ):

tracker_ = new MyZoomer(this->canvas(), this);


connect(picker_, QOverload<const QPointF&>::of(&QwtPlotPicker::selected), this, &ContourPlot::selected);
// Using the old SIGNAL/SLOT syntax because problems with QWT.
// Qt is not able to match signal at runtime even if compile time checks all passed.
// ChatGPT tells it might be an ABI problem with QWT library but I (JST) have been unable to fix for now (2025-10-20).
connect(picker_, SIGNAL(selected(const QPointF&)), SLOT(selected(const QPointF&)));
//connect(picker_, QOverload<const QPointF&>::of(&QwtPlotPicker::selected), this, &ContourPlot::selected);

QSettings settings;
m_colorMapNdx = settings.value("colorMapType",0).toInt();
Expand Down
7 changes: 6 additions & 1 deletion intensityplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ intensityPlot::intensityPlot(QWidget *parent):
new QwtCompassMagnetNeedle( QwtCompassMagnetNeedle::ThinStyle ) );
compass->setValue( 0 );
compass->setOrigin( -90 );
connect(compass,&QwtAbstractSlider::valueChanged,this ,&intensityPlot::angleChanged);

// Using the old SIGNAL/SLOT syntax because problems with QWT.
// Qt is not able to match signal at runtime even if compile time checks all passed.
// ChatGPT tells it might be an ABI problem with QWT library but I (JST) have been unable to fix for now (2025-10-20).
connect(compass, SIGNAL(valueChanged(double)), this ,SLOT(angleChanged(double)));
//connect(compass,&QwtAbstractSlider::valueChanged,this ,&intensityPlot::angleChanged);

populate();
resize(QGuiApplication::primaryScreen()->availableSize() * 1./ 5.);
Expand Down
8 changes: 7 additions & 1 deletion profileplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,13 @@ ProfilePlot::ProfilePlot(QWidget *parent , ContourTools *tools):
// new QwtCompassMagnetNeedle( QwtCompassMagnetNeedle::ThinStyle ) );
compass->setValue( 270 );
compass->setOrigin( -90 );
connect(compass,&QwtAbstractSlider::valueChanged,this ,&ProfilePlot::angleChanged);

// Using the old SIGNAL/SLOT syntax because problems with QWT.
// Qt is not able to match signal at runtime even if compile time checks all passed.
// ChatGPT tells it might be an ABI problem with QWT library but I (JST) have been unable to fix for now (2025-10-20).
connect(compass, SIGNAL(valueChanged(double)), this ,SLOT(angleChanged(double)));
//connect(compass,&QwtAbstractSlider::valueChanged,this ,&ProfilePlot::angleChanged);

connect(m_tools, &ContourTools::newDisplayErrorRange,
this, &ProfilePlot::newDisplayErrorRange);
connect(m_tools, &ContourTools::contourZeroOffsetChanged, this, &ProfilePlot::zeroOffsetChanged);
Expand Down
Loading