File tree 2 files changed +46
-2
lines changed
2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,38 @@ class QgsComposerLabel: QgsComposerItem
25
25
/**Returns the text as it appears on screen (with replaced data field)
26
26
@note this function was added in version 1.2*/
27
27
QString displayText() const;
28
+
29
+ /** Accessor for the vertical alignment of the label
30
+ * @param none
31
+ * @returns Qt::AlignmentFlag
32
+ */
33
+ Qt::AlignmentFlag vAlign() const;
34
+ /** Accessor for the horizontal alignment of the label
35
+ * @param none
36
+ * @returns Qt::AlignmentFlag
37
+ */
38
+ Qt::AlignmentFlag hAlign() const;
39
+ /** Mutator for the horizontal alignment of the label
40
+ * @param Qt::AlignmentFlag
41
+ * @returns void
42
+ */
43
+ void setHAlign( Qt::AlignmentFlag a );
44
+ /** Mutator for the vertical alignment of the label
45
+ * @param QQt::AlignmentFlag
46
+ * @returns void
47
+ */
48
+ void setVAlign( Qt::AlignmentFlag a );
49
+
50
+ //!brief Accessor for the margin of the label
51
+ double margin();
52
+ //!brief Mutator for the margin of the label
53
+ void setMargin( double m );
54
+
55
+
28
56
/**Get font color
29
57
@note: this function was added in version 1.4*/
30
58
QFont font() const;
31
59
void setFont( const QFont& f );
32
- double margin();
33
- void setMargin( double m );
34
60
35
61
/**Sets text color
36
62
@note: this function was added in version 1.4*/
Original file line number Diff line number Diff line change @@ -46,11 +46,29 @@ class CORE_EXPORT QgsComposerLabel: public QgsComposerItem
46
46
47
47
QFont font () const ;
48
48
void setFont ( const QFont& f );
49
+ /* * Accessor for the vertical alignment of the label
50
+ * @param none
51
+ * @returns Qt::AlignmentFlag
52
+ */
49
53
Qt::AlignmentFlag vAlign () const { return mVAlignment ; }
54
+ /* * Accessor for the horizontal alignment of the label
55
+ * @param none
56
+ * @returns Qt::AlignmentFlag
57
+ */
50
58
Qt::AlignmentFlag hAlign () const { return mHAlignment ; }
59
+ /* * Mutator for the horizontal alignment of the label
60
+ * @param Qt::AlignmentFlag
61
+ * @returns void
62
+ */
51
63
void setHAlign ( Qt::AlignmentFlag a ) {mHAlignment = a;}
64
+ /* * Mutator for the vertical alignment of the label
65
+ * @param QQt::AlignmentFlag
66
+ * @returns void
67
+ */
52
68
void setVAlign ( Qt::AlignmentFlag a ) {mVAlignment = a;}
69
+ // !brief Accessor for the margin of the label
53
70
double margin () {return mMargin ;}
71
+ // !brief Mutator for the margin of the label
54
72
void setMargin ( double m ) {mMargin = m;}
55
73
56
74
/* *Sets text color
You can’t perform that action at this time.
0 commit comments