mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
added special sauce (ise some internal QF3 classes) when compiling into QF3 widget library! ... Basically we use QuickFit's native QFTemporaryFile instead of the QT standard QTemporary file. This allows to change the temporary file folder!
This commit is contained in:
parent
6bb09bf212
commit
d29c9da003
@ -45,6 +45,9 @@
|
||||
#include <QFileDialog>
|
||||
#include <QInputDialog>
|
||||
#include <QVBoxLayout>
|
||||
#ifdef QFWIDLIB_LIBRARY
|
||||
# include "qftools.h"
|
||||
#endif
|
||||
|
||||
static QString globalUserSettigsFilename="";
|
||||
static QString globalUserSettigsPrefix="";
|
||||
@ -2851,7 +2854,11 @@ void JKQtBasePlotter::saveImage(QString filename, bool displayPreview) {
|
||||
} else if (isWithSpecialDeviceAdapter && adapterID>=0 && adapterID<jkqtpPaintDeviceAdapters.size()) {
|
||||
QString tempFM="";
|
||||
if (QFile::exists(fn)) {
|
||||
#ifdef QFWIDLIB_LIBRARY
|
||||
QFTemporaryFile* tf=new QFTemporaryFile();
|
||||
#else
|
||||
QTemporaryFile* tf=new QTemporaryFile();
|
||||
#endif
|
||||
tf->open();
|
||||
tempFM=tf->fileName();
|
||||
tf->close();
|
||||
@ -3079,7 +3086,11 @@ void JKQtBasePlotter::saveAsSVG(QString filename, bool displayPreview) {
|
||||
if (!fn.isEmpty()) {
|
||||
QString tempFM="";
|
||||
if (QFile::exists(fn)) {
|
||||
QTemporaryFile* tf=new QTemporaryFile();
|
||||
#ifdef QFWIDLIB_LIBRARY
|
||||
QFTemporaryFile* tf=new QFTemporaryFile();
|
||||
#else
|
||||
QTemporaryFile* tf=new QTemporaryFile();
|
||||
#endif
|
||||
tf->open();
|
||||
tempFM=tf->fileName();
|
||||
tf->close();
|
||||
|
Loading…
Reference in New Issue
Block a user