summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-15 13:05:14 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 10:12:30 +0700
commit7ba4fe885ee1d7db5c6be3e7515edbd019b3bf67 (patch)
treeed3ffc3329e22eb25b2b532a20b3043211b52d9a /qt-ui
parent6f7967e0e0e37926ff2e7fcc31f615567f31286d (diff)
downloadsubsurface-7ba4fe885ee1d7db5c6be3e7515edbd019b3bf67.tar.gz
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp6
1 files changed, 6 insertions, 0 deletions
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.