subsurface/qt-ui/profile
Tomaz Canabrava 677e75fbe4 Process events just after starting the StateMachine
This is needed because of a braindead issue on the Qt event
loop:

http://stackoverflow.com/questions/10059721/qt-qstatemachine-sync-problems-initial-state-not-set-on-started-signali

For the "event 1" to be received, the machine must already be
in a state that react to that signal. Even it was a queued
connection, the slot would be queued but only after the signal
 was received, which it isn't since there is no connection
yet at that point.

To solve your problem, you can wait for the machine is in
"state A" before emitting the signal:

machine->start();
qApp->processEvents();

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2014-02-06 11:32:44 -08:00
..
animationfunctions.cpp Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
animationfunctions.h Add settings awareness for the PP graph 2014-01-27 09:15:28 -08:00
divecartesianaxis.cpp Fix DepthAxis when partial pressures aren't used. 2014-02-05 15:36:29 -08:00
divecartesianaxis.h Optimizations and fixes on the new profile. 2014-02-05 06:30:33 -08:00
diveeventitem.cpp Fix compile time warnings 2014-01-17 06:39:24 +07:00
diveeventitem.h Transform the DiveProfileItem to an Abstract Generalization 2014-01-17 06:18:00 +07:00
divelineitem.cpp Added a new Namespace to deal with Animations and related functions. 2014-01-16 10:12:29 +07:00
divelineitem.h Added a class based on QGraphicsLineItem that can be animated. 2014-01-16 10:12:29 +07:00
divepixmapitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
divepixmapitem.h Added a QGraphicsPixmapItem subclass that handles Animations. 2014-01-16 10:12:29 +07:00
diveplotdatamodel.cpp Created a method to check if calculations should take place. 2014-02-05 06:30:33 -08:00
diveplotdatamodel.h Created a method to check if calculations should take place. 2014-02-05 06:30:33 -08:00
diveprofileitem.cpp Big improvement in speed ( callgrind ) 2014-02-06 06:31:11 -08:00
diveprofileitem.h Optimizations and fixes on the new profile. 2014-02-05 06:30:33 -08:00
diverectitem.cpp Whitespace and coding style updates 2014-01-16 11:50:56 +07:00
diverectitem.h Added a new class based on QGraphicsRectItem that can be animated. 2014-01-16 10:12:20 +07:00
divetextitem.cpp Fix positioning of many text items. 2014-01-29 09:35:16 -08:00
divetextitem.h Add the dive computer text. 2014-01-21 09:38:46 -08:00
divetooltipitem.cpp Big improvement in speed ( callgrind ) 2014-02-06 06:31:11 -08:00
divetooltipitem.h Adapt the ToolTip to work on the new profile 2014-02-06 06:29:19 -08:00
profilewidget2.cpp Process events just after starting the StateMachine 2014-02-06 11:32:44 -08:00
profilewidget2.h Remove a lot of unused code. 2014-02-06 11:32:32 -08:00