typos fixed

This commit is contained in:
Uwe Rathmann 2018-12-11 14:59:43 +01:00
parent a9f059ede3
commit 4a035ee0ed

View File

@ -81,6 +81,15 @@ namespace
QskLayoutEngine::QskLayoutEngine() QskLayoutEngine::QskLayoutEngine()
: QGridLayoutEngine( Qt::AlignVCenter, true /*snapToPixelGrid*/ ) : QGridLayoutEngine( Qt::AlignVCenter, true /*snapToPixelGrid*/ )
{ {
/*
When centering something integer based like a QImage
inside an odd number of pixels, we end up at x.5 positions.
Then snapToPixelGrid will ceil one side and we lose 0.5
in height/width. For these type of situations it would be
good to be able to disable snapToPixelGrid. Unfortunately
this can't be done without recreating the QGridLayoutEngine.
TODO ...
*/
} }
QskLayoutEngine::~QskLayoutEngine() QskLayoutEngine::~QskLayoutEngine()