@@ -82,7 +82,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
82
82
case Qt::DecorationRole:
83
83
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/system.svg" ) );
84
84
}
85
- case QgsMapLayer::Symbology :
85
+ break ;
86
+ case QgsMapLayer::Symbology:
86
87
switch ( role )
87
88
{
88
89
case Qt::DisplayRole:
@@ -92,6 +93,7 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
92
93
case Qt::DecorationRole:
93
94
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/symbology.svg" ) );
94
95
}
96
+ break ;
95
97
case QgsMapLayer::Symbology3D:
96
98
switch ( role )
97
99
{
@@ -102,7 +104,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
102
104
case Qt::DecorationRole:
103
105
return QgsApplication::getThemeIcon ( QStringLiteral ( " /3d.svg" ) );
104
106
}
105
- case QgsMapLayer::Labeling :
107
+ break ;
108
+ case QgsMapLayer::Labeling:
106
109
switch ( role )
107
110
{
108
111
case Qt::DisplayRole:
@@ -112,7 +115,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
112
115
case Qt::DecorationRole:
113
116
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/labels.svg" ) );
114
117
}
115
- case QgsMapLayer::Fields :
118
+ break ;
119
+ case QgsMapLayer::Fields:
116
120
switch ( role )
117
121
{
118
122
case Qt::DisplayRole:
@@ -122,7 +126,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
122
126
case Qt::DecorationRole:
123
127
return QgsApplication::getThemeIcon ( QStringLiteral ( " /mSourceFields" ) );
124
128
}
125
- case QgsMapLayer::Forms :
129
+ break ;
130
+ case QgsMapLayer::Forms:
126
131
switch ( role )
127
132
{
128
133
case Qt::DisplayRole:
@@ -132,7 +137,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
132
137
case Qt::DecorationRole:
133
138
return QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionFormView" ) );
134
139
}
135
- case QgsMapLayer::Actions :
140
+ break ;
141
+ case QgsMapLayer::Actions:
136
142
switch ( role )
137
143
{
138
144
case Qt::DisplayRole:
@@ -142,7 +148,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
142
148
case Qt::DecorationRole:
143
149
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/action.svg" ) );
144
150
}
145
- case QgsMapLayer::MapTips :
151
+ break ;
152
+ case QgsMapLayer::MapTips:
146
153
switch ( role )
147
154
{
148
155
case Qt::DisplayRole:
@@ -152,7 +159,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
152
159
case Qt::DecorationRole:
153
160
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/display.svg" ) );
154
161
}
155
- case QgsMapLayer::Diagrams :
162
+ break ;
163
+ case QgsMapLayer::Diagrams:
156
164
switch ( role )
157
165
{
158
166
case Qt::DisplayRole:
@@ -162,7 +170,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
162
170
case Qt::DecorationRole:
163
171
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/diagram.svg" ) );
164
172
}
165
- case QgsMapLayer::AttributeTable :
173
+ break ;
174
+ case QgsMapLayer::AttributeTable:
166
175
switch ( role )
167
176
{
168
177
case Qt::DisplayRole:
@@ -172,7 +181,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
172
181
case Qt::DecorationRole:
173
182
return QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionOpenTable" ) );
174
183
}
175
- case QgsMapLayer::Rendering :
184
+ break ;
185
+ case QgsMapLayer::Rendering:
176
186
switch ( role )
177
187
{
178
188
case Qt::DisplayRole:
@@ -182,7 +192,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
182
192
case Qt::DecorationRole:
183
193
return QgsApplication::getThemeIcon ( QStringLiteral ( " /propertyicons/rendering.svg" ) );
184
194
}
185
- case QgsMapLayer::CustomProperties :
195
+ break ;
196
+ case QgsMapLayer::CustomProperties:
186
197
switch ( role )
187
198
{
188
199
case Qt::DisplayRole:
@@ -192,7 +203,8 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
192
203
case Qt::DecorationRole:
193
204
return QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionOptions.svg" ) );
194
205
}
195
- case QgsMapLayer::AllStyleCategories :
206
+ break ;
207
+ case QgsMapLayer::AllStyleCategories:
196
208
switch ( role )
197
209
{
198
210
case Qt::DisplayRole:
@@ -202,6 +214,7 @@ QVariant QgsMapLayerStyleCategoriesModel::data( const QModelIndex &index, int ro
202
214
case Qt::DecorationRole:
203
215
return QVariant ();
204
216
}
217
+ break ;
205
218
}
206
219
return QVariant ();
207
220
}
0 commit comments