aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp17
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();