mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
f05cd702b5
commit
064d861e97
1 changed files with 1 additions and 6 deletions
|
@ -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...
|
||||
|
|
Loading…
Reference in a new issue