}
/*!
- \brief Align widget \a src relative to widget \a ref acording to alignment flags.
-
- Alignment flags:
- - Qtx::AlignLeft : align left side of \a src to the left side of \a ref
- - Qtx::AlignRight : align right side of \a src to the right side of \a ref
- - Qtx::AlignTop : align top side of \a src to the top side of \a ref
- - Qtx::AlignBottom : align bottom side of \a src to the bottom side of \a ref
- - Qtx::AlignHCenter : align \a src to the center of \a ref in horizontal dimension
- - Qtx::AlignVCenter : align \a src to the center of \a ref in vertical dimension
- - Qtx::AlignCenter : align \a src to the center of \a ref in both dimensions
- - Qtx::AlignOutLeft : align right side of \a src to the left side of \a ref
- - Qtx::AlignOutRight : align left side of \a src to the right side of \a ref
- - Qtx::AlignOutTop : align bottom side of \a src to the top side of \a ref
- - Qtx::AlignOutBottom : align top side of \a src to the bottom side of \a ref
-
+ \brief Align widget \a src relative to widget \a ref acording to the
+ alignment flags \a alignFlags.
\param src source widget (being aligned)
- \param ref reference widget (source widget being to)
- \param alignFlags alignment flags
+ \param ref reference widget (source widget being aligned to)
+ \param alignFlags alignment flags (Qtx::Alignment)
*/
void Qtx::alignWidget( QWidget* src, const QWidget* ref, const int alignFlags )
{
class QWidget;
//class QToolBar;
-typedef QList<int> QIntList;
-typedef QList<short> QShortList;
-typedef QList<double> QDoubleList;
-typedef QList<QColor> QColorList;
+typedef QList<int> QIntList; //!< list of int values
+typedef QList<short> QShortList; //!< list of short int values
+typedef QList<double> QDoubleList; //!< list of double values
+typedef QList<QColor> QColorList; //!< list of colors
/*!
\class Qtx
class QTX_EXPORT Qtx
{
public:
+ //! Widget alignment flags
enum AlignmentFlags
{
- AlignLeft = Qt::AlignLeft,
- AlignLeading = Qt::AlignLeading,
- AlignRight = Qt::AlignRight,
- AlignTrailing = Qt::AlignTrailing,
- AlignHCenter = Qt::AlignHCenter,
- AlignJustify = Qt::AlignJustify,
- AlignAbsolute = Qt::AlignAbsolute,
- AlignHorizontal_Mask = Qt::AlignHorizontal_Mask,
-
- AlignTop = Qt::AlignTop,
- AlignBottom = Qt::AlignBottom,
- AlignVCenter = Qt::AlignVCenter,
- AlignVertical_Mask = Qt::AlignVertical_Mask,
-
- AlignCenter = Qt::AlignCenter,
-
- AlignOutLeft = Qt::AlignVCenter << 2,
- AlignOutRight = AlignOutLeft << 2,
- AlignOutTop = AlignOutRight << 2,
- AlignOutBottom = AlignOutTop << 2
+ AlignLeft = Qt::AlignLeft, //!< align left side of one widget to the left side of another widget
+ AlignLeading = Qt::AlignLeading, //!< synonim for AlignLeft
+ AlignRight = Qt::AlignRight, //!< align right side of one widget to the right side of another widget
+ AlignTrailing = Qt::AlignTrailing, //!< synonim for AlignRight
+ AlignHCenter = Qt::AlignHCenter, //!< align one widget to the center of another widget in horizontal dimension
+ AlignJustify = Qt::AlignJustify, //!< synonym of Qt::AlignJustify
+ AlignAbsolute = Qt::AlignAbsolute, //!< synonym of Qt::AlignAbsolute
+ AlignHorizontal_Mask = Qt::AlignHorizontal_Mask, //!< synonym of Qt::AlignHorizontal_Mask
+
+ AlignTop = Qt::AlignTop, //!< align top side of one widget to the top side of another widget
+ AlignBottom = Qt::AlignBottom, //!< align bottom side of one widget to the bottom side of another widget
+ AlignVCenter = Qt::AlignVCenter, //!< align one widget to the center of another widget in vertical dimension
+ AlignVertical_Mask = Qt::AlignVertical_Mask, //!< synonym of Qt::AlignVertical_Mask
+
+ AlignCenter = Qt::AlignCenter, //!< align one widget to the center of another widget in both dimensions
+
+ AlignOutLeft = Qt::AlignVCenter << 2, //!< align right side of one widget to the left side of another widget
+ AlignOutRight = AlignOutLeft << 2, //!< align left side of one widget to the right side of another widget
+ AlignOutTop = AlignOutRight << 2, //!< align bottom side of one widget to the top side of another widget
+ AlignOutBottom = AlignOutTop << 2 //!< align top side of one widget to the bottom side of another widget
};
static QString toQString( const char*, const int = -1 );