[patch] trivial kwin geometrytip fix

Lubos Lunak l.lunak at suse.cz
Mon Dec 1 12:01:03 GMT 2003


On Monday 01 of December 2003 07:39, Stanislav Karchebny wrote:
> * Fix incorrect sprintf() parameters (+%d vs %+d)

 %+d is actually correct and intended.

> * Make it display as
>                         +256,+256
>                        (1020 x 653)
> instead of
>                             +256,
>                    +256 (1020 x 653)
>

 That's actually Qt's buggy wrapping, but as it's apparently still not fixed, 
I guess it's better the way you suggest.

>
> Index: geometrytip.cpp
> ===================================================================
> RCS file: /home/kde/kdebase/kwin/geometrytip.cpp,v
> retrieving revision 1.9
> diff -u -p -r1.9 geometrytip.cpp
> --- geometrytip.cpp     11 Nov 2003 18:38:19 -0000      1.9
> +++ geometrytip.cpp     30 Nov 2003 11:44:12 -0000
> @@ -68,7 +68,7 @@ void GeometryTip::setGeometry( const QRe
>
>      h = QMAX( h, 0 ); // in case of isShade() and PBaseSize
>      QString pos;
> -    pos.sprintf( "%+d,%+d (<b>%d x %d</b>)",
> +    pos.sprintf( "+%d,+%d<br>(<b>%d x %d</b>)",
>                       geom.x(), geom.y(), w, h );
>      setText( pos );
>      adjustSize();

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the kde-core-devel mailing list