mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
27 lines
581 B
C
27 lines
581 B
C
|
#pragma once
|
||
|
#include <QApplication>
|
||
|
#include "jkqtplotter/jkqtplotter.h"
|
||
|
#include <QDir>
|
||
|
|
||
|
|
||
|
|
||
|
class JKQTPExampleApplication: public QApplication {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
JKQTPExampleApplication(int &argc, char **argv);
|
||
|
|
||
|
virtual ~JKQTPExampleApplication();
|
||
|
|
||
|
int exec();
|
||
|
|
||
|
protected:
|
||
|
QDir screenshotDir;
|
||
|
bool saveScreenshot;
|
||
|
bool saveSmallScreenshot;
|
||
|
bool saveScreenshotPlot;
|
||
|
bool saveSmallScreenshotPlot;
|
||
|
QString screenshotBasename;
|
||
|
void readCmdLine();
|
||
|
QRect getBoundsWithoutColor(QImage qImage, const QColor &exclusionColor = Qt::white);
|
||
|
};
|