From 7ba4fe885ee1d7db5c6be3e7515edbd019b3bf67 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 15 Jan 2014 13:05:14 -0200 Subject: Added names to the states, so it's easier to debug. There's a Qt visual debug / helper tool made by KDAB named GammaRay that uses QObject instrospection to understand what's happening on a QProject. This tool uses the Object Name to display the items on a list, so I've added the QState's names to their objects, which greatly helps debugging with Gamma Ray the states of the StateMachine. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index e2c2b96aa..2f0d0d3c9 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -203,6 +203,12 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : s->addAnimation(profileAxisAnim); } + // Configuration so we can search for the States later, and it helps debugging. + emptyState->setObjectName("Empty State"); + profileState->setObjectName("Profile State"); + addState->setObjectName("Add State"); + editState->setObjectName("Edit State"); + planState->setObjectName("Plan State"); } // Currently just one dive, but the plan is to enable All of the selected dives. -- cgit v1.2.3-70-g09d2