[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdelibs/kdeui
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2005-07-12 13:36:09
Message-ID: 1121175369.313499.4904.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 433990 by staniek:

backported:
 let completion box inherit font settings
 let push button reuse a tooltip from gui item



 M  +3 -1      klineedit.cpp  
 M  +3 -0      kpushbutton.cpp  


--- branches/KDE/3.4/kdelibs/kdeui/klineedit.cpp #433989:433990
@@ -1217,8 +1217,10 @@
 
 KCompletionBox * KLineEdit::completionBox( bool create )
 {
-    if ( create && !d->completionBox )
+    if ( create && !d->completionBox ) {
         setCompletionBox( new KCompletionBox( this, "completion box" ) );
+        d->completionBox->setFont(font());
+    }
 
     return d->completionBox;
 }
--- branches/KDE/3.4/kdelibs/kdeui/kpushbutton.cpp #433989:433990
@@ -21,6 +21,7 @@
 
 #include <qdragobject.h>
 #include <qwhatsthis.h>
+#include <qtooltip.h>
 
 #include "config.h"
 
@@ -99,6 +100,8 @@
 
     setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) );
 
+    QToolTip::add( this, item.toolTip() );
+
     QWhatsThis::add( this, item.whatsThis() );
 
     if (kapp)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic