65 Q_PROPERTY(QWidget *target READ target CONSTANT)
66 Q_PROPERTY(
bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
68 Q_PROPERTY(const
DAnchorInfo *top READ top WRITE setTop NOTIFY topChanged)
69 Q_PROPERTY(const
DAnchorInfo *bottom READ bottom WRITE setBottom NOTIFY bottomChanged)
70 Q_PROPERTY(const
DAnchorInfo *left READ left WRITE setLeft NOTIFY leftChanged)
71 Q_PROPERTY(const
DAnchorInfo *right READ right WRITE setRight NOTIFY rightChanged)
72 Q_PROPERTY(const
DAnchorInfo *horizontalCenter READ horizontalCenter WRITE setHorizontalCenter NOTIFY horizontalCenterChanged)
73 Q_PROPERTY(const
DAnchorInfo *verticalCenter READ verticalCenter WRITE setVerticalCenter NOTIFY verticalCenterChanged)
74 Q_PROPERTY(QWidget *fill READ fill WRITE setFill NOTIFY fillChanged)
75 Q_PROPERTY(QWidget *centerIn READ centerIn WRITE setCenterIn NOTIFY centerInChanged)
76 Q_PROPERTY(
int margins READ margins WRITE setMargins NOTIFY marginsChanged)
77 Q_PROPERTY(
int topMargin READ topMargin WRITE setTopMargin NOTIFY topMarginChanged)
78 Q_PROPERTY(
int bottomMargin READ bottomMargin WRITE setBottomMargin NOTIFY bottomMarginChanged)
79 Q_PROPERTY(
int leftMargin READ leftMargin WRITE setLeftMargin NOTIFY leftMarginChanged)
80 Q_PROPERTY(
int rightMargin READ rightMargin WRITE setRightMargin NOTIFY rightMarginChanged)
81 Q_PROPERTY(
int horizontalCenterOffset READ horizontalCenterOffset WRITE setHorizontalCenterOffset NOTIFY horizontalCenterOffsetChanged)
82 Q_PROPERTY(
int verticalCenterOffset READ verticalCenterOffset WRITE setVerticalCenterOffset NOTIFY verticalCenterOffsetChanged)
83 Q_PROPERTY(
bool alignWhenCentered READ alignWhenCentered WRITE setAlignWhenCentered NOTIFY alignWhenCenteredChanged)
97 QWidget *target()
const;
107 QWidget *fill()
const;
108 QWidget *centerIn()
const;
110 int topMargin()
const;
111 int bottomMargin()
const;
112 int leftMargin()
const;
113 int rightMargin()
const;
114 int horizontalCenterOffset()
const;
115 int verticalCenterOffset()
const;
116 int alignWhenCentered()
const;
117 AnchorError errorCode()
const;
118 QString errorString()
const;
121 static bool setAnchor(QWidget *w,
const Qt::AnchorPoint &p, QWidget *target,
const Qt::AnchorPoint &point);
122 static void clearAnchors(
const QWidget *w);
123 static DAnchorsBase *getAnchorBaseByWidget(
const QWidget *w);
126 void setEnabled(
bool enabled);
127 bool setAnchor(
const Qt::AnchorPoint &p, QWidget *target,
const Qt::AnchorPoint &point);
132 bool setHorizontalCenter(
const DAnchorInfo *horizontalCenter);
133 bool setVerticalCenter(
const DAnchorInfo *verticalCenter);
134 bool setFill(QWidget *fill);
135 bool setCenterIn(QWidget *centerIn);
138 void setMargins(
int margins);
139 void setTopMargin(
int topMargin);
140 void setBottomMargin(
int bottomMargin);
141 void setLeftMargin(
int leftMargin);
142 void setRightMargin(
int rightMargin);
143 void setHorizontalCenterOffset(
int horizontalCenterOffset);
144 void setVerticalCenterOffset(
int verticalCenterOffset);
145 void setAlignWhenCentered(
bool alignWhenCentered);
147 void setTop(
int arg, Qt::AnchorPoint point);
148 void setBottom(
int arg, Qt::AnchorPoint point);
149 void setLeft(
int arg, Qt::AnchorPoint point);
150 void setRight(
int arg, Qt::AnchorPoint point);
151 void setHorizontalCenter(
int arg, Qt::AnchorPoint point);
152 void setVerticalCenter(
int arg, Qt::AnchorPoint point);
154 void moveTop(
int arg);
155 void moveBottom(
int arg);
156 void moveLeft(
int arg);
157 void moveRight(
int arg);
158 void moveHorizontalCenter(
int arg);
159 void moveVerticalCenter(
int arg);
160 void moveCenter(
const QPoint &arg);
163 void updateVertical();
164 void updateHorizontal();
166 void updateCenterIn();
188 void init(QWidget *w);
193 QExplicitlySharedDataPointer<DAnchorsBasePrivate> d_ptr;