mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
printing: pass current filename to dialog
Instead of accessing a global variable, pass the filename from the MainWindow to the dialog. This is supposed to cut down on the global variable mess. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3a1122048b
commit
37f2207f94
3 changed files with 8 additions and 6 deletions
|
@ -20,11 +20,12 @@ class PrintDialog : public QDialog {
|
|||
|
||||
public:
|
||||
// If singleDive is non-null, print only that single dive
|
||||
explicit PrintDialog(dive *singleDive, QWidget *parent = 0);
|
||||
explicit PrintDialog(dive *singleDive, const QString &filename, QWidget *parent = 0);
|
||||
~PrintDialog();
|
||||
|
||||
private:
|
||||
dive *singleDive;
|
||||
QString filename;
|
||||
PrintOptions *optionsWidget;
|
||||
QProgressBar *progressBar;
|
||||
Printer *printer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue