mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
fixed JKQTPExampleApplication implementation
This commit is contained in:
parent
4edaa3e1e2
commit
1cf16249cf
@ -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;
|
||||
|
@ -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)
|
||||
{}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user