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

List:       kde-core-devel
Subject:    PATCH: KAction::setText(int, const QString&)
From:       Peter Putzer <pputzer () edu ! uni-klu ! ac ! at>
Date:       2001-02-17 10:38:09
[Download RAW message or body]

The attached patch fixes a small bug in Konsole (and possibly other apps):

when you renamed a session in Konsole, the associated entry in the toolbar
was only updated after a paint event got triggered (for example by moving
the cursor over the button).

bye,
Peter

["kaction.diff" (TEXT/PLAIN)]

? log
? kaction.loT
? kurllabel.patch
? kaction.diff
? kaction.cpp.flc
? kdeui.dox
? klistview.cpp.flc
? kaction.h.flc
Index: kaction.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kaction.cpp,v
retrieving revision 1.171
diff -u -3 -p -r1.171 kaction.cpp
--- kaction.cpp	2001/02/13 11:18:03	1.171
+++ kaction.cpp	2001/02/17 10:25:56
@@ -601,6 +601,8 @@ void KAction::setText( int i, const QStr
       while( ( pos = stripped.find( '&' ) ) != -1 )
         stripped.replace( pos, 1, QString::null );
       static_cast<KToolBarButton *>(button)->setText( stripped );
+
+      button->update(); // otherwise we have to wait for a paint event before the new text is visible!
     }
   }
 }


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

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