mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
Printing: enable UI elements that now can be used
The new statistics code, enable the editing of colors, font, and other template options. This patch enables the UI elements for these features. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
This commit is contained in:
parent
69f2921ffa
commit
b6d3735204
1 changed files with 0 additions and 6 deletions
|
@ -93,15 +93,12 @@ void PrintOptions::on_radioDiveListPrint_toggled(bool check)
|
||||||
printOptions->type = print_options::DIVELIST;
|
printOptions->type = print_options::DIVELIST;
|
||||||
|
|
||||||
// print options
|
// print options
|
||||||
ui.printInColor->setEnabled(true);
|
|
||||||
ui.printSelected->setEnabled(true);
|
ui.printSelected->setEnabled(true);
|
||||||
|
|
||||||
// print template
|
// print template
|
||||||
ui.deleteButton->setEnabled(true);
|
ui.deleteButton->setEnabled(true);
|
||||||
ui.editButton->setEnabled(true);
|
|
||||||
ui.exportButton->setEnabled(true);
|
ui.exportButton->setEnabled(true);
|
||||||
ui.importButton->setEnabled(true);
|
ui.importButton->setEnabled(true);
|
||||||
ui.printTemplate->setEnabled(true);
|
|
||||||
|
|
||||||
setupTemplates();
|
setupTemplates();
|
||||||
}
|
}
|
||||||
|
@ -113,15 +110,12 @@ void PrintOptions::on_radioStatisticsPrint_toggled(bool check)
|
||||||
printOptions->type = print_options::STATISTICS;
|
printOptions->type = print_options::STATISTICS;
|
||||||
|
|
||||||
// print options
|
// print options
|
||||||
ui.printInColor->setEnabled(false);
|
|
||||||
ui.printSelected->setEnabled(false);
|
ui.printSelected->setEnabled(false);
|
||||||
|
|
||||||
// print template
|
// print template
|
||||||
ui.deleteButton->setEnabled(false);
|
ui.deleteButton->setEnabled(false);
|
||||||
ui.editButton->setEnabled(false);
|
|
||||||
ui.exportButton->setEnabled(false);
|
ui.exportButton->setEnabled(false);
|
||||||
ui.importButton->setEnabled(false);
|
ui.importButton->setEnabled(false);
|
||||||
ui.printTemplate->setEnabled(false);
|
|
||||||
|
|
||||||
setupTemplates();
|
setupTemplates();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue