um... fix titleRect()
svn path=/trunk/kdebase/kwin/; revision=399602
This commit is contained in:
parent
1b1d7df406
commit
8ee563139d
2 changed files with 3 additions and 3 deletions
|
@ -796,7 +796,7 @@ bool KCommonDecoration::isToolWindow() const
|
|||
return ((type==NET::Toolbar)||(type==NET::Utility)||(type==NET::Menu));
|
||||
}
|
||||
|
||||
QRect KCommonDecoration::titleRect()
|
||||
QRect KCommonDecoration::titleRect() const
|
||||
{
|
||||
int r_x, r_y, r_x2, r_y2;
|
||||
widget()->rect().coords(&r_x, &r_y, &r_x2, &r_y2);
|
||||
|
@ -809,7 +809,7 @@ QRect KCommonDecoration::titleRect()
|
|||
const int ttlHeight = layoutMetric(LM_TitleHeight);
|
||||
const int titleEdgeBottomBottom = r_y+titleEdgeTop+ttlHeight+titleEdgeBottom-1;
|
||||
return QRect(r_x+titleEdgeLeft+buttonsLeftWidth()+titleBorderLeft, r_y+titleEdgeTop,
|
||||
r_x2-titleEdgeRight-buttonsRightWidth()-(r_x+titleEdgeLeft+buttonsLeftWidth()+titleBorderLeft),
|
||||
r_x2-titleEdgeRight-buttonsRightWidth()-titleBorderRight-(r_x+titleEdgeLeft+buttonsLeftWidth()+titleBorderLeft),
|
||||
titleEdgeBottomBottom-(r_y+titleEdgeTop) );
|
||||
}
|
||||
|
||||
|
|
|
@ -216,7 +216,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration
|
|||
* Convenience method.
|
||||
* @returns the title rect.
|
||||
*/
|
||||
QRect titleRect();
|
||||
QRect titleRect() const;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue