mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Re Enable the option to add cylinders / weigthsystems.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
df57b657fd
commit
28deb3e65d
2 changed files with 7 additions and 4 deletions
|
@ -68,9 +68,12 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
|
||||||
addCylinder = new QPushButton(plusIcon, QString(), ui->cylindersGroup);
|
addCylinder = new QPushButton(plusIcon, QString(), ui->cylindersGroup);
|
||||||
addCylinder->setFlat(true);
|
addCylinder->setFlat(true);
|
||||||
addCylinder->setToolTip(tr("Add Cylinder"));
|
addCylinder->setToolTip(tr("Add Cylinder"));
|
||||||
|
connect(addCylinder, SIGNAL(clicked(bool)), this, SLOT(addCylinder_clicked()));
|
||||||
|
|
||||||
addWeight = new QPushButton(plusIcon, QString(), ui->weightGroup);
|
addWeight = new QPushButton(plusIcon, QString(), ui->weightGroup);
|
||||||
addWeight->setFlat(true);
|
addWeight->setFlat(true);
|
||||||
addWeight->setToolTip(tr("Add Weight System"));
|
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.
|
// 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);
|
// qDebug("min temp %u",stats_selection.min_temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainTab::on_addCylinder_clicked()
|
void MainTab::addCylinder_clicked()
|
||||||
{
|
{
|
||||||
if (cylindersModel->rowCount() >= MAX_CYLINDERS)
|
if (cylindersModel->rowCount() >= MAX_CYLINDERS)
|
||||||
return;
|
return;
|
||||||
|
@ -297,7 +300,7 @@ void MainTab::on_delCylinder_clicked()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainTab::on_addWeight_clicked()
|
void MainTab::addWeight_clicked()
|
||||||
{
|
{
|
||||||
if (weightModel->rowCount() >= MAX_WEIGHTSYSTEMS)
|
if (weightModel->rowCount() >= MAX_WEIGHTSYSTEMS)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -42,10 +42,10 @@ public:
|
||||||
virtual void showEvent(QShowEvent* );
|
virtual void showEvent(QShowEvent* );
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void on_addCylinder_clicked();
|
void addCylinder_clicked();
|
||||||
void on_editCylinder_clicked();
|
void on_editCylinder_clicked();
|
||||||
void on_delCylinder_clicked();
|
void on_delCylinder_clicked();
|
||||||
void on_addWeight_clicked();
|
void addWeight_clicked();
|
||||||
void on_editWeight_clicked();
|
void on_editWeight_clicked();
|
||||||
void on_delWeight_clicked();
|
void on_delWeight_clicked();
|
||||||
void updateDiveInfo(int dive);
|
void updateDiveInfo(int dive);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue