mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: remove "Table" option from print options radio group
"Table" print is now a template, so remove the radio button. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
7f8d20c09d
commit
e8ad4b0c97
4 changed files with 2 additions and 43 deletions
|
@ -148,7 +148,7 @@ void PrintDialog::onFinished()
|
|||
|
||||
void PrintDialog::previewClicked(void)
|
||||
{
|
||||
if (printOptions.type == print_options::TABLE || printOptions.type == print_options::STATISTICS) {
|
||||
if (printOptions.type == print_options::STATISTICS) {
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText("This feature is not implemented yet");
|
||||
msgBox.exec();
|
||||
|
@ -164,7 +164,7 @@ void PrintDialog::previewClicked(void)
|
|||
|
||||
void PrintDialog::printClicked(void)
|
||||
{
|
||||
if (printOptions.type == print_options::TABLE || printOptions.type == print_options::STATISTICS) {
|
||||
if (printOptions.type == print_options::STATISTICS) {
|
||||
QMessageBox msgBox;
|
||||
msgBox.setText("This feature is not implemented yet");
|
||||
msgBox.exec();
|
||||
|
@ -178,8 +178,6 @@ void PrintDialog::printClicked(void)
|
|||
connect(printer, SIGNAL(progessUpdated(int)), progressBar, SLOT(setValue(int)));
|
||||
printer->print();
|
||||
break;
|
||||
case print_options::TABLE:
|
||||
break;
|
||||
case print_options::STATISTICS:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -22,9 +22,6 @@ void PrintOptions::setup()
|
|||
case print_options::DIVELIST:
|
||||
ui.radioDiveListPrint->setChecked(true);
|
||||
break;
|
||||
case print_options::TABLE:
|
||||
ui.radioTablePrint->setChecked(true);
|
||||
break;
|
||||
case print_options::STATISTICS:
|
||||
ui.radioStatisticsPrint->setChecked(true);
|
||||
break;
|
||||
|
@ -69,13 +66,6 @@ void PrintOptions::on_radioDiveListPrint_clicked(bool check)
|
|||
}
|
||||
}
|
||||
|
||||
void PrintOptions::on_radioTablePrint_clicked(bool check)
|
||||
{
|
||||
if (check) {
|
||||
printOptions->type = print_options::TABLE;
|
||||
}
|
||||
}
|
||||
|
||||
void PrintOptions::on_radioStatisticsPrint_clicked(bool check)
|
||||
{
|
||||
if (check) {
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
struct print_options {
|
||||
enum print_type {
|
||||
DIVELIST,
|
||||
TABLE,
|
||||
STATISTICS
|
||||
} type;
|
||||
QString p_template;
|
||||
|
@ -66,7 +65,6 @@ slots:
|
|||
void printInColorClicked(bool check);
|
||||
void printSelectedClicked(bool check);
|
||||
void on_radioStatisticsPrint_clicked(bool check);
|
||||
void on_radioTablePrint_clicked(bool check);
|
||||
void on_radioDiveListPrint_clicked(bool check);
|
||||
void on_printTemplate_currentIndexChanged(int index);
|
||||
void on_editButton_clicked();
|
||||
|
|
|
@ -46,19 +46,6 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QRadioButton" name="radioTablePrint">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Table print</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QRadioButton" name="radioStatisticsPrint">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
|
@ -71,19 +58,6 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2" rowspan="2">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -151,7 +125,6 @@
|
|||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>radioDiveListPrint</tabstop>
|
||||
<tabstop>radioStatisticsPrint</tabstop>
|
||||
<tabstop>printSelected</tabstop>
|
||||
<tabstop>printInColor</tabstop>
|
||||
</tabstops>
|
||||
|
|
Loading…
Add table
Reference in a new issue