Changeset 5a1be76 in subsurface


Ignore:
Timestamp:
Jan 18, 2015, 8:22:08 PM (3 years ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
Mtest, android_test, dcDownload, foratdotde, gitMerge, gitdebug, gitpictures, ios, master, mergeKirigamiPort, pictimeshift, resolutionIndependence, spinner, testTomaz, testing, v4.4-branch, v4.5-branch
Children:
ecf4d18b
Parents:
f5726ffa
git-author:
Tomaz Canabrava <tomaz.canabrava@…> (01/18/15 08:34:00)
git-committer:
Dirk Hohndel <dirk@…> (01/18/15 20:22:08)
Message:

Only update the "add dive profile / plan dive" 20x/s

We were updating the dive quite a lot of times, we really didn't need to.
This will help, but not fix, the issues with plan / add dive.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@…>
Signed-off-by: Dirk Hohndel <dirk@…>

Location:
qt-ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qt-ui/diveplanner.cpp

    rf9ceff0 r5a1be76  
    182182        setBrush(Qt::white);
    183183        setZValue(2);
     184        t.start();
    184185}
    185186
     
    226227void DiveHandler::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
    227228{
     229        if (t.elapsed() < 40)
     230                return;
     231        t.start();
     232
    228233        ProfileWidget2 *view = qobject_cast<ProfileWidget2*>(scene()->views().first());
    229234        if(view->isPointOutOfBoundaries(event->scenePos()))
    230235                return;
     236
    231237        QGraphicsEllipseItem::mouseMoveEvent(event);
    232238        emit moved();
  • qt-ui/diveplanner.h

    r0d619d5 r5a1be76  
    134134        void selfRemove();
    135135        void changeGas();
     136private:
     137        QTime t;
    136138};
    137139
Note: See TracChangeset for help on using the changeset viewer.