diff --git a/Makefile b/Makefile
index 9961f04c7..338f81a7c 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,7 @@ HEADERS = \
qt-ui/plotareascene.h \
qt-ui/starwidget.h \
qt-ui/modeldelegates.h \
+ qt-ui/profilegraphics.h \
SOURCES = \
@@ -67,6 +68,7 @@ SOURCES = \
qt-ui/plotareascene.cpp \
qt-ui/starwidget.cpp \
qt-ui/modeldelegates.cpp \
+ qt-ui/profilegraphics.cpp \
$(RESFILE)
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 3f545171e..e8134a5f6 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -94,6 +94,8 @@ void MainWindow::dive_selection_changed(const QItemSelection& newSelection, cons
continue;
select_dive(get_divenr(d));
}
+
+ ui->ProfileWidget->plot( get_dive(selected_dive) );
}
void MainWindow::on_actionSave_triggered()
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index fe97d98b4..7dfbae746 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -25,7 +25,7 @@
Qt::Horizontal
-
+
@@ -88,7 +88,7 @@
0
0
763
- 19
+ 25