88 Q_DECL_DEPRECATED
void drawLegend( QPainter *painter )
SIP_DEPRECATED;
129 class LegendComponent
133 LegendComponent() =
default;
135 QObject *item =
nullptr;
158 double labelXOffset = 0.0;
164 double maxSiblingSymbolWidth = 0.0;
181 class LegendComponentGroup
186 QList<LegendComponent> components;
189 QSizeF size = QSizeF( 0, 0 );
197 bool placeColumnBreakBeforeGroup =
false;
230 int setColumns( QList<LegendComponentGroup> &groupList );
235 double spaceAboveGroup(
const LegendComponentGroup &group );
259 QSizeF drawTitle(
QgsRenderContext &context,
double top, Qt::AlignmentFlag halignment = Qt::AlignLeft,
double legendWidth = 0 )
const;
269 QSizeF drawGroup(
const LegendComponentGroup &group,
QgsRenderContext &context, ColumnContext columnContext,
double top = 0 );
305 void widthAndOffsetForTitleText(
const Qt::AlignmentFlag halignment,
double legendWidth,
double &width,
double &offset )
const;
Contains information about the context of a rendering operation.