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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-04 08:25:21 +02:00 committed by Dirk Hohndel
parent f05cd702b5
commit 064d861e97

View file

@ -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...