aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 09:40:26 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-22 09:40:26 -0300
commit28deb3e65dd04ba0eb178b44b2a3bdd16f40ef0f (patch)
tree2337647fa3aa3eba66b0de5d8ba2f1bb95f07ff6
parentdf57b657fdcc1ac4ff9cf7bdb81e0c7a575f7b3b (diff)
downloadsubsurface-28deb3e65dd04ba0eb178b44b2a3bdd16f40ef0f.tar.gz
Re Enable the option to add cylinders / weigthsystems.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
-rw-r--r--qt-ui/maintab.cpp7
-rw-r--r--qt-ui/maintab.h4
2 files changed, 7 insertions, 4 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index bbd9ebad8..50549f2c0 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -68,9 +68,12 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
addCylinder = new QPushButton(plusIcon, QString(), ui->cylindersGroup);
addCylinder->setFlat(true);
addCylinder->setToolTip(tr("Add Cylinder"));
+ connect(addCylinder, SIGNAL(clicked(bool)), this, SLOT(addCylinder_clicked()));
+
addWeight = new QPushButton(plusIcon, QString(), ui->weightGroup);
addWeight->setFlat(true);
addWeight->setToolTip(tr("Add Weight System"));
+ connect(addWeight, SIGNAL(clicked(bool)), this, SLOT(addWeight_clicked()));
}
// We need to manually position the 'plus' on cylinder and weight.
@@ -270,7 +273,7 @@ void MainTab::updateDiveInfo(int dive)
// qDebug("min temp %u",stats_selection.min_temp);
}
-void MainTab::on_addCylinder_clicked()
+void MainTab::addCylinder_clicked()
{
if (cylindersModel->rowCount() >= MAX_CYLINDERS)
return;
@@ -297,7 +300,7 @@ void MainTab::on_delCylinder_clicked()
{
}
-void MainTab::on_addWeight_clicked()
+void MainTab::addWeight_clicked()
{
if (weightModel->rowCount() >= MAX_WEIGHTSYSTEMS)
return;
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h
index 2bdb63fbc..4b10e7a6b 100644
--- a/qt-ui/maintab.h
+++ b/qt-ui/maintab.h
@@ -42,10 +42,10 @@ public:
virtual void showEvent(QShowEvent* );
public Q_SLOTS:
- void on_addCylinder_clicked();
+ void addCylinder_clicked();
void on_editCylinder_clicked();
void on_delCylinder_clicked();
- void on_addWeight_clicked();
+ void addWeight_clicked();
void on_editWeight_clicked();
void on_delWeight_clicked();
void updateDiveInfo(int dive);