Skip to content

Commit 45c0be1

Browse files
committed
sip: remove enum constants
1 parent f041072 commit 45c0be1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+164
-164
lines changed

python/analysis/raster/qgsrastercalcnode.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class QgsRasterCalcNode
77
//! defines possible types of node
88
enum Type
99
{
10-
tOperator = 1,
10+
tOperator,
1111
tNumber,
1212
tRasterRef
1313
};

python/core/composer/qgsaddremoveitemcommand.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class QgsAddRemoveItemCommand: QObject, QUndoCommand
99

1010
enum State
1111
{
12-
Added = 0,
12+
Added,
1313
Removed
1414
};
1515

python/core/composer/qgsaddremovemultiframecommand.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class QgsAddRemoveMultiFrameCommand : QUndoCommand
88

99
enum State
1010
{
11-
Added = 0,
11+
Added,
1212
Removed
1313
};
1414

python/core/composer/qgsatlascomposition.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public:
8888
* @note This method has no effect when exporting to PDF if singleFile() is true
8989
*/
9090
bool setFilenamePattern( const QString& pattern );
91-
91+
9292
/**Returns an error string from parsing the filename expression.
9393
* @returns filename pattern parser error
9494
* @see setFilenamePattern
@@ -135,7 +135,7 @@ public:
135135

136136
QString featureFilter() const;
137137
void setFeatureFilter( const QString& expression );
138-
138+
139139
/**Returns an error string from parsing the feature filter expression.
140140
* @returns filename pattern parser error
141141
* @see setFilenamePattern

python/core/composer/qgscomposeritemcommand.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class QgsComposerMergeCommand : QgsComposerItemCommand
4242
public:
4343
enum Context
4444
{
45-
Unknown = 0,
45+
Unknown,
4646
//composer label
4747
ComposerLabelSetText,
4848
ComposerLabelSetId,

python/core/composer/qgscomposerlegendstyle.sip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class QgsComposerLegendStyle
1616
};
1717
enum Side // margin side
1818
{
19-
Top = 0,
20-
Bottom = 1,
21-
Left = 2,
22-
Right = 3
19+
Top,
20+
Bottom,
21+
Left,
22+
Right,
2323
};
2424
QgsComposerLegendStyle();
2525
~QgsComposerLegendStyle();

python/core/composer/qgscomposermap.sip

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,43 @@ class QgsComposerMap : QgsComposerItem
2222
/** \brief Preview style */
2323
enum PreviewMode
2424
{
25-
Cache = 0, // Use raster cache
25+
Cache, // Use raster cache
2626
Render, // Render the map
2727
Rectangle // Display only rectangle
2828
};
2929

3030
enum GridStyle
3131
{
32-
Solid = 0, //solid lines
32+
Solid, //solid lines
3333
Cross //only draw line crossings
3434
};
3535

3636
enum GridAnnotationPosition
3737
{
38-
InsideMapFrame = 0,
38+
InsideMapFrame,
3939
OutsideMapFrame,
4040
Disabled
4141
};
4242

4343
enum GridAnnotationDirection
4444
{
45-
Horizontal = 0,
45+
Horizontal,
4646
Vertical,
4747
HorizontalAndVertical,
4848
BoundaryDirection
4949
};
5050

5151
enum GridAnnotationFormat
5252
{
53-
Decimal = 0,
53+
Decimal,
5454
DegreeMinute,
5555
DegreeMinuteSecond
5656
};
5757

5858
enum GridFrameStyle
5959
{
60-
NoGridFrame = 0,
61-
Zebra //black / white pattern
60+
NoGridFrame,
61+
Zebra // black/white pattern
6262
};
6363

6464
/**Enum for different frame borders*/

python/core/composer/qgscomposermultiframe.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class QgsComposerMultiFrame: QObject
1010

1111
enum ResizeMode
1212
{
13-
UseExistingFrames = 0,
13+
UseExistingFrames,
1414
ExtendToNextPage, //uses the next page(s) until the content has been printed
1515
RepeatOnEveryPage, //repeats the same frame on every page
1616
RepeatUntilFinished //duplicates last frame to next page to fit the total size

python/core/composer/qgscomposerscalebar.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ class QgsComposerScaleBar: QgsComposerItem
1313
/**Added in version 1.8*/
1414
enum Alignment
1515
{
16-
Left = 0,
16+
Left,
1717
Middle,
1818
Right
1919
};
2020

2121
/**Added in version 1.9*/
2222
enum ScaleBarUnits
2323
{
24-
MapUnits = 0,
24+
MapUnits,
2525
Meters,
2626
Feet,
2727
NauticalMiles

python/core/composer/qgscomposition.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class QgsComposition : QGraphicsScene
1515
/** \brief Plot type */
1616
enum PlotStyle
1717
{
18-
Preview = 0, // Use cache etc
18+
Preview, // Use cache etc
1919
Print, // Render well
2020
Postscript // Fonts need different scaling!
2121
};

0 commit comments

Comments
 (0)