Skip to content

Commit

Permalink
Maybe even LESS enum classes will help?
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 3, 2020
1 parent 4369ffb commit 66a3b09
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions python/core/auto_additions/qgslabeling.py

This file was deleted.

2 changes: 1 addition & 1 deletion python/core/auto_generated/labeling/qgslabeling.sip.in
Expand Up @@ -22,7 +22,7 @@ Contains constants and enums relating to labeling.
%End
public:

enum class LinePlacementFlag
enum LinePlacementFlag
{
OnLine,
AboveLine,
Expand Down
2 changes: 1 addition & 1 deletion src/core/labeling/qgslabeling.h
Expand Up @@ -35,7 +35,7 @@ class CORE_EXPORT QgsLabeling
/**
* Line placement flags, which control how candidates are generated for a linear feature.
*/
enum class LinePlacementFlag : int
enum LinePlacementFlag
{
OnLine = 1, //!< Labels can be placed directly over a line feature.
AboveLine = 2, //!< Labels can be placed above a line feature. Unless MapOrientation is also specified this mode respects the direction of the line feature, so a line from right to left labels will have labels placed placed below the line feature.
Expand Down

0 comments on commit 66a3b09

Please sign in to comment.