diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 09:40:26 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-22 09:40:26 -0300 |
commit | 28deb3e65dd04ba0eb178b44b2a3bdd16f40ef0f (patch) | |
tree | 2337647fa3aa3eba66b0de5d8ba2f1bb95f07ff6 /qt-ui/maintab.cpp | |
parent | df57b657fdcc1ac4ff9cf7bdb81e0c7a575f7b3b (diff) | |
download | subsurface-28deb3e65dd04ba0eb178b44b2a3bdd16f40ef0f.tar.gz |
Re Enable the option to add cylinders / weigthsystems.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 7 |
1 files changed, 5 insertions, 2 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; |