@@ -604,44 +604,44 @@ class CORE_EXPORT QgsLabelComponent
604
604
605
605
// methods
606
606
607
- const QString& text () { return mText ; }
607
+ const QString& text () const { return mText ; }
608
608
void setText ( const QString& text ) { mText = text; }
609
609
610
- const QgsPoint& origin () { return mOrigin ; }
611
- void setOrigin ( QgsPoint point ) { mOrigin = point; }
610
+ const QgsPoint& origin () const { return mOrigin ; }
611
+ void setOrigin ( const QgsPoint& point ) { mOrigin = point; }
612
612
613
613
bool useOrigin () const { return mUseOrigin ; }
614
- void setUseOrigin ( bool use ) { mUseOrigin = use; }
614
+ void setUseOrigin ( const bool use ) { mUseOrigin = use; }
615
615
616
616
double rotation () const { return mRotation ; }
617
- void setRotation ( double rotation ) { mRotation = rotation; }
617
+ void setRotation ( const double rotation ) { mRotation = rotation; }
618
618
619
619
double rotationOffset () const { return mRotationOffset ; }
620
- void setRotationOffset ( double rotation ) { mRotationOffset = rotation; }
620
+ void setRotationOffset ( const double rotation ) { mRotationOffset = rotation; }
621
621
622
622
bool useRotation () const { return mUseRotation ; }
623
- void setUseRotation ( bool use ) { mUseRotation = use; }
623
+ void setUseRotation ( const bool use ) { mUseRotation = use; }
624
624
625
- const QgsPoint& center () { return mCenter ; }
626
- void setCenter ( QgsPoint point ) { mCenter = point; }
625
+ const QgsPoint& center () const { return mCenter ; }
626
+ void setCenter ( const QgsPoint& point ) { mCenter = point; }
627
627
628
628
bool useCenter () const { return mUseCenter ; }
629
- void setUseCenter ( bool use ) { mUseCenter = use; }
629
+ void setUseCenter ( const bool use ) { mUseCenter = use; }
630
630
631
- const QgsPoint& size () { return mSize ; }
632
- void setSize ( QgsPoint point ) { mSize = point; }
631
+ const QgsPoint& size () const { return mSize ; }
632
+ void setSize ( const QgsPoint& point ) { mSize = point; }
633
633
634
- const QgsPoint& offset () { return mOffset ; }
635
- void setOffset ( QgsPoint point ) { mOffset = point; }
634
+ const QgsPoint& offset () const { return mOffset ; }
635
+ void setOffset ( const QgsPoint& point ) { mOffset = point; }
636
636
637
- const QPicture* picture () { return mPicture ; }
637
+ const QPicture* picture () const { return mPicture ; }
638
638
void setPicture ( QPicture* picture ) { mPicture = picture; }
639
639
640
640
double pictureBuffer () const { return mPictureBuffer ; }
641
- void setPictureBuffer ( double buffer ) { mPictureBuffer = buffer; }
641
+ void setPictureBuffer ( const double buffer ) { mPictureBuffer = buffer; }
642
642
643
643
double dpiRatio () const { return mDpiRatio ; }
644
- void setDpiRatio ( double ratio ) { mDpiRatio = ratio; }
644
+ void setDpiRatio ( const double ratio ) { mDpiRatio = ratio; }
645
645
646
646
private:
647
647
// current label component text,
@@ -795,15 +795,15 @@ class CORE_EXPORT QgsPalLabeling : public QgsLabelingEngineInterface
795
795
virtual void drawLabel ( pal::LabelPosition* label, QgsRenderContext& context, QgsPalLayerSettings& tmpLyr, DrawLabelType drawType, double dpiRatio = 1.0 );
796
796
797
797
static void drawLabelBuffer ( QgsRenderContext& context,
798
- QgsLabelComponent component,
798
+ const QgsLabelComponent & component,
799
799
const QgsPalLayerSettings& tmpLyr );
800
800
801
801
static void drawLabelBackground ( QgsRenderContext& context,
802
802
QgsLabelComponent component,
803
803
const QgsPalLayerSettings& tmpLyr );
804
804
805
- static void drawLabelShadow ( QgsRenderContext& context,
806
- QgsLabelComponent component,
805
+ static void drawLabelShadow ( QgsRenderContext & context,
806
+ const QgsLabelComponent & component,
807
807
const QgsPalLayerSettings& tmpLyr );
808
808
809
809
// ! load/save engine settings to project file
0 commit comments