129    int type() 
const override;
 
  130    QIcon icon() 
const override;
 
  133    QString displayName() 
const override;
 
  134    bool requiresRasterization() 
const override;
 
  135    bool containsAdvancedEffects() 
const override;
 
  140    void adjustBoxSize();
 
  148    void setResizeToContents( 
bool enabled );
 
  154    bool resizeToContents() 
const;
 
  166    void setAutoUpdateModel( 
bool autoUpdate );
 
  173    bool autoUpdateModel() 
const;
 
  179    void setLegendFilterByMapEnabled( 
bool enabled );
 
  192    void setLegendFilterOutAtlas( 
bool doFilter );
 
  198    bool legendFilterOutAtlas() 
const;
 
  204    void setTitle( 
const QString &title );
 
  210    QString title() 
const;
 
  216    Qt::AlignmentFlag titleAlignment() 
const;
 
  222    void setTitleAlignment( Qt::AlignmentFlag alignment );
 
  279    Q_DECL_DEPRECATED 
void setLineSpacing( 
double spacing ) 
SIP_DEPRECATED;
 
  285    double boxSpace() const;
 
  291    void setBoxSpace( 
double space );
 
  297    double columnSpace() const;
 
  303    void setColumnSpace( 
double spacing );
 
  319    Q_DECL_DEPRECATED 
void setFontColor( const QColor &color ) 
SIP_DEPRECATED;
 
  325    double symbolWidth() const;
 
  331    void setSymbolWidth( 
double width );
 
  339    double maximumSymbolSize() const;
 
  349    void setMaximumSymbolSize( 
double size );
 
  357    double minimumSymbolSize() const;
 
  367    void setMinimumSymbolSize( 
double size );
 
  377    void setSymbolAlignment( Qt::AlignmentFlag alignment );
 
  387    Qt::AlignmentFlag symbolAlignment() const;
 
  393    double symbolHeight() const;
 
  399    void setSymbolHeight( 
double height );
 
  405    double wmsLegendWidth() const;
 
  411    void setWmsLegendWidth( 
double width );
 
  417    double wmsLegendHeight() const;
 
  423    void setWmsLegendHeight( 
double height );
 
  429    void setWrapString( const QString &
string );
 
  435    QString wrapString() const;
 
  441    int columnCount() const;
 
  447    void setColumnCount( 
int count );
 
  454    bool splitLayer() const;
 
  461    void setSplitLayer( 
bool enabled );
 
  467    bool equalColumnWidth() const;
 
  473    void setEqualColumnWidth( 
bool equalize );
 
  481    bool drawRasterStroke() const;
 
  490    void setDrawRasterStroke( 
bool enabled );
 
  499    QColor rasterStrokeColor() const;
 
  508    void setRasterStrokeColor( const QColor &color );
 
  517    double rasterStrokeWidth() const;
 
  526    void setRasterStrokeWidth( 
double width );
 
  549    void setFilterByMapItems( 
const QList< QgsLayoutItemMap * > &maps );
 
  559    QList< QgsLayoutItemMap * > filterByMapItems() 
const;
 
  568    QString themeName() 
const;
 
  578    void updateFilterByMap( 
bool redraw = 
true );
 
  585    void paint( QPainter *painter, 
const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget ) 
override;
 
  587    void finalizeRestoreFromXml() 
override;
 
  590    ExportLayerBehavior exportLayerBehavior() 
const override;
 
  592    bool isRefreshing() 
const override;
 
  596    void refresh() 
override;
 
  597    void invalidateCache() 
override;
 
  602    bool writePropertiesToElement( QDomElement &element, QDomDocument &document, 
const QgsReadWriteContext &context ) 
const override;
 
  603    bool readPropertiesFromElement( 
const QDomElement &element, 
const QDomDocument &document, 
const QgsReadWriteContext &context ) 
override;
 
  608    void invalidateCurrentMap();
 
  610    void updateFilterByMapAndRedraw();
 
  614    void mapLayerStyleOverridesChanged();
 
  616    void mapThemeChanged( 
const QString &theme );
 
  620    void onAtlasFeature();
 
  625    void clearLegendCachedData();
 
  635    void setModelStyleOverrides( 
const QMap<QString, QString> &overrides );
 
  637    void ensureModelIsInitialized();
 
  638    std::unique_ptr< QgsLegendModel > mLegendModel;
 
  639    std::unique_ptr< QgsLayerTree > mCustomLayerTree;
 
  640    bool mDeferLegendModelInitialization = 
true;
 
  645    int mColumnCount = 1;
 
  650    QList< QString > mFilterByMapUuids;
 
  651    QList< QPointer< QgsLayoutItemMap >> mFilterByMapItems;
 
  653    bool mLegendFilterByMap = 
false;
 
  654    bool mLegendFilterByExpression = 
false;
 
  657    bool mFilterOutAtlas = 
false;
 
  660    bool mFilterAskedForUpdate = 
false;
 
  662    void doUpdateFilterByMap();
 
  664    bool mInAtlas = 
false;
 
  667    bool mInitialMapScaleCalculated = 
false;
 
  670    bool mForceResize = 
false;
 
  673    bool mSizeToContents = 
true;
 
 
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
 
Contains settings and helpers relating to a render of a QgsLayoutItem.
 
The class is used as a container of context for various read/write operations on other objects.