diff options
Diffstat (limited to 'qt-ui/printoptions.cpp')
-rw-r--r-- | qt-ui/printoptions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp index ac5f6550c..818e89c33 100644 --- a/qt-ui/printoptions.cpp +++ b/qt-ui/printoptions.cpp @@ -23,6 +23,9 @@ void PrintOptions::setup(struct options *printOpt) case options::TWOPERPAGE: ui.radioTwoDives->setChecked(true); break; + case options::ONEPERPAGE: + ui.radioOneDive->setChecked(true); + break; case options::TABLE: ui.radioTablePrint->setChecked(true); break; @@ -44,6 +47,7 @@ void PrintOptions::setup(struct options *printOpt) connect(ui.radioSixDives, SIGNAL(clicked(bool)), this, SLOT(radioSixDivesClicked(bool))); connect(ui.radioTwoDives, SIGNAL(clicked(bool)), this, SLOT(radioTwoDivesClicked(bool))); + connect(ui.radioOneDive, SIGNAL(clicked(bool)), this, SLOT(radioOneDiveClicked(bool))); connect(ui.radioTablePrint, SIGNAL(clicked(bool)), this, SLOT(radioTablePrintClicked(bool))); connect(ui.printInColor, SIGNAL(clicked(bool)), this, SLOT(printInColorClicked(bool))); @@ -65,6 +69,11 @@ void PrintOptions::radioTwoDivesClicked(bool check) printOptions->type = options::TWOPERPAGE; } +void PrintOptions::radioOneDiveClicked(bool check) +{ + printOptions->type = options::ONEPERPAGE; +} + void PrintOptions::radioTablePrintClicked(bool check) { printOptions->type = options::TABLE; |