From 064d861e975f60a2ef1e3dff1895f1aeeac95a78 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 4 Jun 2021 08:25:21 +0200 Subject: [PATCH] profile: update comment The usage of the DiveProfileItems has changed (axes, etc. are passed at construction time). Update a comment accordingly. Signed-off-by: Berthold Stoeger --- profile-widget/diveprofileitem.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/profile-widget/diveprofileitem.h b/profile-widget/diveprofileitem.h index ba73cc83c..bf9c0ae10 100644 --- a/profile-widget/diveprofileitem.h +++ b/profile-widget/diveprofileitem.h @@ -11,12 +11,7 @@ /* This is the Profile Item, it should be used for quite a lot of things on the profile view. The usage should be pretty simple: - DiveProfileItem *profile = new DiveProfileItem( DiveDataModel ); - profile->setVerticalAxis( profileYAxis ); - profile->setHorizontalAxis( timeAxis ); - profile->setModel( DiveDataModel ); - profile->setHorizontalDataColumn( DiveDataModel::TIME ); - profile->setVerticalDataColumn( DiveDataModel::DEPTH ); + DiveProfileItem *profile = new DiveProfileItem(DiveDataModel, timeAxis, DiveDataModel::TIME, DiveDataModel, DiveDataModel::DEPTH, fontPrintScale); scene()->addItem(profile); This is a generically item and should be used as a base for others, I think...