fixed JKQTPExampleApplication implementation

This commit is contained in:
jkriege2 2023-08-14 14:26:13 +02:00
parent 4edaa3e1e2
commit 1cf16249cf
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include <QCommandLineOption>
#include <QWindow>
#include <QWidget>
#include <QMessageBox>
#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<uint64_t>(w))+", plot="+QString::number(reinterpret_cast<uint64_t>(plot)));
if (w) {
QPixmap pix_win=w->grab();
/*QPixmap pix;

View File

@ -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<JKQTPlotter*(void)> p_):
type(FunctorType), plotf(p_), f(), p(nullptr)
type(PlotterFunctorType), plotf(p_), f(), p(nullptr)
{}
};