diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 14:30:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-01 14:43:07 -0700 |
commit | 04e59a0e1cdb32c5091fc4bc0d692f00821ab849 (patch) | |
tree | ed0c673ab4b680d236d67e961a28390fe31f0a5c /qt-ui/maintab.cpp | |
parent | 5c2ce0ac200cbf4b37a9765148b78d3091b5cd9f (diff) | |
download | subsurface-04e59a0e1cdb32c5091fc4bc0d692f00821ab849.tar.gz |
Hook up adding a weightsystem
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 7d60db5c2..f8c69ed9c 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -83,6 +83,23 @@ void MainTab::on_delCylinder_clicked() { } +void MainTab::on_addWeight_clicked() +{ + /* this needs a dialog - right now we just fill in a dummy */ + weightsystem_t *newWeightsystem = (weightsystem_t *) malloc(sizeof(weightsystem_t)); + newWeightsystem->description = "Just testing"; + newWeightsystem->weight.grams = 15000; + weightModel->add(newWeightsystem); +} + +void MainTab::on_editWeight_clicked() +{ +} + +void MainTab::on_delWeight_clicked() +{ +} + void MainTab::reload() { cylindersModel->update(); |