MCPcopy Create free account
hub / github.com/KDE/labplot / setHandlePosition

Method setHandlePosition

src/3rdparty/Qt-Advanced-Docking-System/src/ResizeHandle.cpp:226–247  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

224
225//============================================================================
226void CResizeHandle::setHandlePosition(Qt::Edge HandlePosition)
227{
228 d->HandlePosition = HandlePosition;
229 switch (d->HandlePosition)
230 {
231 case Qt::LeftEdge: // fall through
232 case Qt::RightEdge: setCursor(Qt::SizeHorCursor); break;
233
234 case Qt::TopEdge: // fall through
235 case Qt::BottomEdge: setCursor(Qt::SizeVerCursor); break;
236 }
237
238 setMaxResizeSize(d->isHorizontal() ? parentWidget()->height() : parentWidget()->width());
239 if (!d->isHorizontal())
240 {
241 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
242 }
243 else
244 {
245 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
246 }
247}
248
249
250//============================================================================

Callers 1

setSideBarLocationMethod · 0.80

Calls 3

heightMethod · 0.80
isHorizontalMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected