startPos has to return absolute positions

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739868
This commit is contained in:
Andre Duffeck 2007-11-22 06:00:02 +00:00
parent 9c52d8f067
commit a93b6f8e07

View File

@ -84,13 +84,13 @@ public:
{ {
switch ( direction ) { switch ( direction ) {
case LeftToRight: case LeftToRight:
return q->margin(LeftMargin); return geometry.left() + q->margin(LeftMargin);
case TopToBottom: case TopToBottom:
return q->margin(TopMargin); return geometry.top() + q->margin(TopMargin);
case RightToLeft: case RightToLeft:
return geometry.width() - q->margin(RightMargin); return geometry.right() - q->margin(RightMargin);
case BottomToTop: case BottomToTop:
return geometry.height() - q->margin(BottomMargin); return geometry.bottom() - q->margin(BottomMargin);
default: default:
Q_ASSERT(false); Q_ASSERT(false);
return 0; return 0;