dbg button patch
W. Tasin
tasin at fhm.edu
Wed Mar 13 00:57:03 UTC 2002
Hi jbb,
I tested it for KDE2 and the debugToolbar was wider than before. It
seems there is a different sizeHint() handling now.
So I applied your patch only for
QT_VERSION >= 300.
Ciao
Walter
jbb wrote:
>Hi,
>
>This tiny patch fixes the width of the dbg floating toolbar so that the text
>can be seen. It used to work in 1.4, but I can't see how :(
>
>Tested on kde3 but not tested on kde2.
>Can someone test and commit. Otherwise I'll commit next week if there's no
>objections.
>
>Thanks,
>
>jbb
>
>
>------------------------------------------------------------------------
>
>? kdevelop.dbgbutton.diff
>? stamp-h1
>Index: kdevelop/dbgtoolbar.cpp
>===================================================================
>RCS file: /home/kde/kdevelop/kdevelop/Attic/dbgtoolbar.cpp,v
>retrieving revision 1.1.2.14.2.6.4.1
>diff -u -r1.1.2.14.2.6.4.1 dbgtoolbar.cpp
>--- kdevelop/dbgtoolbar.cpp 2001/09/26 16:04:20 1.1.2.14.2.6.4.1
>+++ kdevelop/dbgtoolbar.cpp 2002/03/09 21:39:29
>@@ -200,7 +200,8 @@
> if (s.isEmpty())
> return pixmap_.size();
>
>- return QPushButton::sizeHint();
>+ return QSize(QPushButton::sizeHint().width() + pixmap_.size().width(),
>+ QPushButton::sizeHint().height());
> }
>
> // **************************************************************************
>
--
The KDevelop project: tasin at kdevelop.de [www.kdevelop.org]
--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W. Tasin, FB 04,FHM-------------------PGP-KeyID:0x7961A645----------:
<Key-Fingerprint: 1610 835F 0080 32F4 6140 6CF7 A7D0 44CD 7961A645>
More information about the KDevelop-devel
mailing list