aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-26 00:31:37 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-28 11:37:38 +0300
commite8ad4b0c97c011f9cc89943252a69a8008bbb749 (patch)
tree93e9983561424da0d6af5d9a0a60fafef3feda29 /qt-ui
parent7f8d20c09d531a65dd8864e86b33766d49c0b04b (diff)
downloadsubsurface-e8ad4b0c97c011f9cc89943252a69a8008bbb749.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/printdialog.cpp6
-rw-r--r--qt-ui/printoptions.cpp10
-rw-r--r--qt-ui/printoptions.h2
-rw-r--r--qt-ui/printoptions.ui27
4 files changed, 2 insertions, 43 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp
index c42ec6fb9..8717766a1 100644
--- a/qt-ui/printdialog.cpp
+++ b/qt-ui/printdialog.cpp
@@ -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;
}
diff --git a/qt-ui/printoptions.cpp b/qt-ui/printoptions.cpp
index df49694ee..223dfab93 100644
--- a/qt-ui/printoptions.cpp
+++ b/qt-ui/printoptions.cpp
@@ -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) {
diff --git a/qt-ui/printoptions.h b/qt-ui/printoptions.h
index 3ece6b64c..326935b8c 100644
--- a/qt-ui/printoptions.h
+++ b/qt-ui/printoptions.h
@@ -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();
diff --git a/qt-ui/printoptions.ui b/qt-ui/printoptions.ui
index 6bd271bbe..b2daefd0b 100644
--- a/qt-ui/printoptions.ui
+++ b/qt-ui/printoptions.ui
@@ -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>&amp;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>