Qt 4.8
|
#include "qlayout.h"
#include "private/qlayoutengine_p.h"
#include "qvector.h"
#include "qwidget.h"
#include <qlist.h>
#include <qalgorithms.h>
#include <qdebug.h>
Go to the source code of this file.
Typedefs | |
typedef qint64 | Fixed64 |
Functions | |
static int | fRound (Fixed64 i) |
void | qGeomCalc (QVector< QLayoutStruct > &chain, int start, int count, int pos, int space, int spacer) |
Q_GUI_EXPORT QSize | qSmartMaxSize (const QSize &sizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy, Qt::Alignment align) |
Q_GUI_EXPORT QSize | qSmartMaxSize (const QWidgetItem *i, Qt::Alignment align) |
Q_GUI_EXPORT QSize | qSmartMaxSize (const QWidget *w, Qt::Alignment align) |
Q_GUI_EXPORT QSize | qSmartMinSize (const QSize &sizeHint, const QSize &minSizeHint, const QSize &minSize, const QSize &maxSize, const QSizePolicy &sizePolicy) |
Q_GUI_EXPORT QSize | qSmartMinSize (const QWidgetItem *i) |
Q_GUI_EXPORT QSize | qSmartMinSize (const QWidget *w) |
Q_GUI_EXPORT int | qSmartSpacing (const QLayout *layout, QStyle::PixelMetric pm) |
static Fixed64 | toFixed (int i) |
Definition at line 57 of file qlayoutengine.cpp.
|
inlinestatic |
Definition at line 59 of file qlayoutengine.cpp.
Referenced by qGeomCalc().
void qGeomCalc | ( | QVector< QLayoutStruct > & | chain, |
int | start, | ||
int | count, | ||
int | pos, | ||
int | space, | ||
int | spacer | ||
) |
Definition at line 78 of file qlayoutengine.cpp.
Referenced by QBoxLayoutPrivate::calcHfw(), QGridLayoutPrivate::distribute(), distributeMultiBox(), QSplitterPrivate::doResize(), QDockAreaLayoutInfo::fitItems(), QDockAreaLayout::fitLayout(), QGridLayoutPrivate::heightForWidth(), QToolBarLayout::layoutActions(), QTabBarPrivate::layoutTabs(), QBoxLayout::setGeometry(), and QFormLayout::setGeometry().
Q_GUI_EXPORT QSize qSmartMaxSize | ( | const QSize & | sizeHint, |
const QSize & | minSize, | ||
const QSize & | maxSize, | ||
const QSizePolicy & | sizePolicy, | ||
Qt::Alignment | align | ||
) |
Definition at line 393 of file qlayoutengine.cpp.
Referenced by QLayout::closestAcceptableSize(), QWidgetItem::maximumSize(), qSmartMaxSize(), QWidgetItemV2::updateCacheIfNecessary(), and QScrollAreaPrivate::updateScrollBars().
Q_GUI_EXPORT QSize qSmartMaxSize | ( | const QWidgetItem * | i, |
Qt::Alignment | align | ||
) |
Definition at line 416 of file qlayoutengine.cpp.
Q_GUI_EXPORT QSize qSmartMaxSize | ( | const QWidget * | w, |
Qt::Alignment | align | ||
) |
Definition at line 424 of file qlayoutengine.cpp.
Q_GUI_EXPORT QSize qSmartMinSize | ( | const QSize & | sizeHint, |
const QSize & | minSizeHint, | ||
const QSize & | minSize, | ||
const QSize & | maxSize, | ||
const QSizePolicy & | sizePolicy | ||
) |
Definition at line 348 of file qlayoutengine.cpp.
Referenced by QSplitterPrivate::addContribution(), QMdiAreaPrivate::appendChild(), QWorkspace::cascade(), QLayout::closestAcceptableSize(), QSplitterPrivate::doMove(), QSplitterPrivate::doResize(), QStatusBar::event(), QSplitterPrivate::findWidgetJustBeforeOrJustAfter(), menuBarHeightForWidth(), QStackedLayout::minimumSize(), QToolBarAreaLayoutItem::minimumSize(), QWidgetItem::minimumSize(), QSplitter::minimumSizeHint(), QWidgetResizeHandler::mouseMoveEvent(), qSmartMinSize(), QSplitterPrivate::recalc(), QStatusBar::reformat(), QSplitterPrivate::setGeo(), QSplitterPrivate::setSizes_helper(), QMdiArea::showEvent(), QWidgetItemV2::updateCacheIfNecessary(), QStyledItemDelegate::updateEditorGeometry(), and QScrollAreaPrivate::updateScrollBars().
Q_GUI_EXPORT QSize qSmartMinSize | ( | const QWidgetItem * | i | ) |
Definition at line 378 of file qlayoutengine.cpp.
Q_GUI_EXPORT QSize qSmartMinSize | ( | const QWidget * | w | ) |
Definition at line 386 of file qlayoutengine.cpp.
Q_GUI_EXPORT int qSmartSpacing | ( | const QLayout * | layout, |
QStyle::PixelMetric | pm | ||
) |
Definition at line 430 of file qlayoutengine.cpp.
Referenced by QGridLayout::horizontalSpacing(), QLayout::setAlignment(), QFormLayout::setHorizontalSpacing(), QFormLayout::setVerticalSpacing(), QBoxLayout::spacing(), and QGridLayout::verticalSpacing().
|
inlinestatic |