mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: port context menu to QtQuick
This is for desktop only. We will have to think about what to do on mobile. Either a "hamburger menu" or a "long click" seem to be the most reasonable options. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b099e17042
commit
c1c35ad48b
4 changed files with 84 additions and 15 deletions
|
@ -292,21 +292,8 @@ bool ProfileWidget2::isPlanner() const
|
|||
return currentState == PLAN;
|
||||
}
|
||||
|
||||
#if 0 // TODO::: FINISH OR DISABLE
|
||||
struct int ProfileWidget2::getEntryFromPos(QPointF pos)
|
||||
{
|
||||
// find the time stamp corresponding to the mouse position
|
||||
int seconds = lrint(timeAxis->valueAt(pos));
|
||||
|
||||
for (int i = 0; i < plotInfo.nr; i++) {
|
||||
if (plotInfo.entry[i].sec >= seconds)
|
||||
return i;
|
||||
}
|
||||
return plotInfo.nr - 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
<<<<<<< HEAD
|
||||
static bool isDiveTextItem(const QGraphicsItem *item, const DiveTextItem *textItem)
|
||||
{
|
||||
while (item) {
|
||||
|
@ -410,6 +397,8 @@ void ProfileWidget2::connectPlannerModel()
|
|||
connect(plannerModel, &DivePlannerPointsModel::rowsMoved, this, &ProfileWidget2::pointsMoved);
|
||||
}
|
||||
#endif
|
||||
=======
|
||||
>>>>>>> 28d057ffb (profile: port context menu to QtQuick)
|
||||
|
||||
void ProfileWidget2::profileChanged(dive *dive)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue