summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-10-27 21:04:17 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-11-27 19:19:07 (GMT)
commit2aa9303031d9d9f4b123034f4a7fd84f1d1270ba (patch)
treeb219cd935bfdb22a0f2766c61e220b8b3c6cb8bd /doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp
parenta801b57a403548cccd081d8a0ae1f174d2201f9a (diff)
downloadQt-2aa9303031d9d9f4b123034f4a7fd84f1d1270ba.zip
Qt-2aa9303031d9d9f4b123034f4a7fd84f1d1270ba.tar.gz
Qt-2aa9303031d9d9f4b123034f4a7fd84f1d1270ba.tar.bz2
QGAL: Limit absolute size of anchors and add offset to calculation
This commit is groundwork for the support of negative-sized anchors by the simplex solver. The idea is to add to all variables an offset large enough to ensure they are never negative. The implementation limits all variable sizes in the range [-limit, limit] and feed them into the simplex with an offset of "limit". Subtracting this offset later to find out the real values. "limit" is defined as QWIDGETSIZE_MAX for platforms where qreal is double and as QWIDGETSIZE_MAX / 32 when it is float. This is to avoid numerical errors in the simplex solver. This commit also modifies the ASSERT clause inside QSimplex so it becomes less prone to false positives due to numerical errors. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp')
0 files changed, 0 insertions, 0 deletions