Index: plot.cpp
===================================================================
--- plot.cpp (revision 2458)
+++ plot.cpp (working copy)
@@ -205,5 +205,5 @@
void Plot::exportPlot()
{
QwtPlotRenderer renderer;
- renderer.exportTo( this, "friedberg.pdf" );
+ renderer.
renderDocument( this,
"friedberg.png",
QSizeF( 300,
200 ),
85 );
}
Index: main.cpp
===================================================================
--- main.cpp (revision 2458)
+++ main.cpp (working copy)
@@ -40,6 +40,10 @@
d_plot->setMode( typeBox->currentIndex() );
connect( typeBox, SIGNAL( currentIndexChanged( int ) ),
d_plot, SLOT( setMode( int ) ) );
+ if (qApp->platformName () == "minimal") {
+ d_plot->exportPlot ();
+ exit (0);
+ }
}
int main( int argc, char **argv )
Index: plot.cpp
===================================================================
--- plot.cpp (revision 2458)
+++ plot.cpp (working copy)
@@ -205,5 +205,5 @@
void Plot::exportPlot()
{
QwtPlotRenderer renderer;
- renderer.exportTo( this, "friedberg.pdf" );
+ renderer.renderDocument( this, "friedberg.png", QSizeF( 300, 200 ), 85 );
}
Index: main.cpp
===================================================================
--- main.cpp (revision 2458)
+++ main.cpp (working copy)
@@ -40,6 +40,10 @@
d_plot->setMode( typeBox->currentIndex() );
connect( typeBox, SIGNAL( currentIndexChanged( int ) ),
d_plot, SLOT( setMode( int ) ) );
+ if (qApp->platformName () == "minimal") {
+ d_plot->exportPlot ();
+ exit (0);
+ }
}
int main( int argc, char **argv )
To copy to clipboard, switch view to plain text mode
Bookmarks