TechDraw: Refractor tracker action with proper enum

This commit is contained in:
Farley Runkel
2024-04-22 18:21:49 +08:00
parent 58be610253
commit 9430ea9ee5
4 changed files with 27 additions and 32 deletions

View File

@@ -44,13 +44,15 @@ namespace TechDrawGui
class QGSPage;
class QGIView;
//TODO: make this a proper enum
static constexpr int TRACKERPICK(0);
static constexpr int TRACKEREDIT(1);
static constexpr int TRACKERCANCEL(2);
static constexpr int TRACKERCANCELEDIT(3);
static constexpr int TRACKERFINISHED(4);
static constexpr int TRACKERSAVE(5);
enum TrackerAction
{
PICK = 0,
EDIT = 1,
CANCEL = 2,
CANCELEDIT = 3,
FINISHED = 4,
SAVE = 5
};
class TechDrawGuiExport QGTracker : public QObject, public QGIPrimPath
{