um... fix titleRect()

svn path=/trunk/kdebase/kwin/; revision=399602
This commit is contained in:
Sandro Giessl 2005-03-22 00:15:29 +00:00
parent 1b1d7df406
commit 8ee563139d
2 changed files with 3 additions and 3 deletions

View file

@ -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) );
}

View file

@ -216,7 +216,7 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration
* Convenience method.
* @returns the title rect.
*/
QRect titleRect();
QRect titleRect() const;
public:
/**