mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13:24 +00:00
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>
This commit is contained in:
parent
6f7967e0e0
commit
7ba4fe885e
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue