mainwindow.cc
changeset 20 2e1610865683
parent 15 63c91bd27863
child 22 fa3d7ce5d0a7
--- a/mainwindow.cc	Thu Jan 26 16:26:12 2012 +0100
+++ b/mainwindow.cc	Fri Jan 27 00:18:40 2012 +0100
@@ -1,6 +1,6 @@
-#include "pch.h"
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
+#include "plot.h"
 
 using Qt::DefaultLocaleLongDate;
 
@@ -80,11 +80,16 @@
     t->setItem(r, V, new QTableWidgetItem(igc_.glider()));
     ++r;
 
-
-//    ui->table->setItem(0, 1, new QTableWidgetItem(igc_.pilot()));
-
-    qDebug() << igc_.device();
-    qDebug() << igc_.pilot();
-    qDebug() << igc_.date();
+    showProfile();
 
 }
+
+void MainWindow::showProfile()
+{
+    Plot *plot = new Plot(tr("Altitude"), this);
+
+    plot->setXAxis(0, 100, 10);
+    plot->setYAxis(0, 200, 10);
+    ui->altitude->setScene(plot);
+   // ui->altitude->show();
+}