startPos has to return absolute positions
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=739868
This commit is contained in:
parent
9c52d8f067
commit
a93b6f8e07
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user