14#include <QtCore/qrect.h>
20 class QWidgetInterface;
30 static QRect calculateChildRect(
const QRect& _parentRect,
const QSize& _childSize,
ot::Alignment _childAlignment);
36 static QRectF calculateChildRect(
const QRectF& _parentRect,
const QSizeF& _childSize,
ot::Alignment _childAlignment);
42 static QRect fitOnScreen(
const QRect& _sourceRect,
bool _primaryScreenOnly =
false);
51 static bool centerWidgetOnParent(
const QWidget* _parentWidget, QWidget* _childWidget);
59 static QRect getCenterWidgetOnParentRect(
const QWidget* _parentWidget, QWidget* _childWidget);
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition Positioning.h:22
Alignment
Alignment.
Definition GuiTypes.h:21