QtGnuplotWidget can be used to embed Gnuplot into an existing Qt application. This patch makes integration easier, through the following changes:
- QtGnuplotWidget gets the parent QWidget pointer as its first parameter. With this change, QtGnuplotWidget can be loaded from ui files.
- The export functions in QtGnuplotWidget get the target filename from a parameter, and do not ask for it themselves. This enables the embedding application to query for the filename in some other way.
- loadSettings and saveSettings can use a configurable path for their settings. Thus it is possible to have e.g. several plots with different settings.
The behaviour of Gnuplot is unchanged.