Engauge Digitizer 2
Loading...
Searching...
No Matches
Typedefs | Functions
GuidelineViewState.cpp File Reference
#include "GuidelineViewState.h"
#include <QHash>
Include dependency graph for GuidelineViewState.cpp:

Go to the source code of this file.

Typedefs

typedef QHash< GuidelineViewState, QStringGuidelineViewStateHash
 

Functions

QString guidelineViewStateAsString (GuidelineViewState state)
 

Typedef Documentation

◆ GuidelineViewStateHash

Definition at line 10 of file GuidelineViewState.cpp.

Function Documentation

◆ guidelineViewStateAsString()

QString guidelineViewStateAsString ( GuidelineViewState state)

Definition at line 14 of file GuidelineViewState.cpp.

15{
16 if (guidelineViewStateHash.size () == 0) {
17
18 // First time through we load the hash
19 guidelineViewStateHash [GUIDELINE_VIEW_STATE_HIDE] = "Hide";
20 guidelineViewStateHash [GUIDELINE_VIEW_STATE_EDIT] = "Edit";
21 guidelineViewStateHash [GUIDELINE_VIEW_STATE_LOCK] = "Lock";
22 }
23
24 if (guidelineViewStateHash.contains (state)) {
25 return guidelineViewStateHash [state];
26 } else {
27 return "?";
28 }
29}
@ GUIDELINE_VIEW_STATE_HIDE
@ GUIDELINE_VIEW_STATE_EDIT
@ GUIDELINE_VIEW_STATE_LOCK