equal
deleted
inserted
replaced
1 #include "pch.h" |
|
2 #include "mainwindow.h" |
1 #include "mainwindow.h" |
3 #include "ui_mainwindow.h" |
2 #include "ui_mainwindow.h" |
|
3 #include "plot.h" |
4 |
4 |
5 using Qt::DefaultLocaleLongDate; |
5 using Qt::DefaultLocaleLongDate; |
6 |
6 |
7 MainWindow::MainWindow(QWidget *parent) |
7 MainWindow::MainWindow(QWidget *parent) |
8 : QMainWindow(parent), ui(new Ui::MainWindow) |
8 : QMainWindow(parent), ui(new Ui::MainWindow) |
78 t->setRowCount(t->rowCount() + 1); |
78 t->setRowCount(t->rowCount() + 1); |
79 t->setItem(r, K, new QTableWidgetItem(tr("Glider"))); |
79 t->setItem(r, K, new QTableWidgetItem(tr("Glider"))); |
80 t->setItem(r, V, new QTableWidgetItem(igc_.glider())); |
80 t->setItem(r, V, new QTableWidgetItem(igc_.glider())); |
81 ++r; |
81 ++r; |
82 |
82 |
83 |
83 showProfile(); |
84 // ui->table->setItem(0, 1, new QTableWidgetItem(igc_.pilot())); |
|
85 |
|
86 qDebug() << igc_.device(); |
|
87 qDebug() << igc_.pilot(); |
|
88 qDebug() << igc_.date(); |
|
89 |
84 |
90 } |
85 } |
|
86 |
|
87 void MainWindow::showProfile() |
|
88 { |
|
89 Plot *plot = new Plot(tr("Altitude"), this); |
|
90 |
|
91 plot->setXAxis(0, 100, 10); |
|
92 plot->setYAxis(0, 200, 10); |
|
93 ui->altitude->setScene(plot); |
|
94 // ui->altitude->show(); |
|
95 } |