From 1cf16249cf68bfeb6ef19c8c0d814747232940e6 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Mon, 14 Aug 2023 14:26:13 +0200 Subject: [PATCH] fixed JKQTPExampleApplication implementation --- examples/libexampletools/jkqtpexampleapplication.cpp | 2 ++ examples/libexampletools/jkqtpexampleapplication.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/libexampletools/jkqtpexampleapplication.cpp b/examples/libexampletools/jkqtpexampleapplication.cpp index 6a596de155..4550bbc067 100644 --- a/examples/libexampletools/jkqtpexampleapplication.cpp +++ b/examples/libexampletools/jkqtpexampleapplication.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "jkqtplotter/jkqtplotter.h" @@ -114,6 +115,7 @@ void JKQTPExampleApplication::saveWidget(QWidget *w, int iVisible) { if (iVisible>0 && screenshotBasename.value(iVisible, "")=="") { bn+=QString("_win%1").arg(iVisible, 2, 10, QLatin1Char('0')); } + //QMessageBox::information(nullptr, "DEBUG", bn+": w="+QString::number(reinterpret_cast(w))+", plot="+QString::number(reinterpret_cast(plot))); if (w) { QPixmap pix_win=w->grab(); /*QPixmap pix; diff --git a/examples/libexampletools/jkqtpexampleapplication.h b/examples/libexampletools/jkqtpexampleapplication.h index 8e0a52f5da..2b46c2ccab 100644 --- a/examples/libexampletools/jkqtpexampleapplication.h +++ b/examples/libexampletools/jkqtpexampleapplication.h @@ -45,10 +45,10 @@ protected: type(FunctorType), f(f_), p(nullptr), plotf() {} inline Data(JKQTPlotter* p_): - type(FunctorType), p(p_), f(), plotf() + type(PlotterType), p(p_), f(), plotf() {} inline Data(std::function p_): - type(FunctorType), plotf(p_), f(), p(nullptr) + type(PlotterFunctorType), plotf(p_), f(), p(nullptr) {} };