From 5ab47964d8b52897bb0662ef4a5fcf9604acaf6c Mon Sep 17 00:00:00 2001 From: zautrix Date: Sun, 05 Dec 2004 12:12:10 +0000 Subject: fixed kapi toolbar repaint problem --- (limited to 'kaddressbook') diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 76f9ab6..15cab73 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -359,14 +359,18 @@ KABCore::KABCore( KXMLGUIClient *client, bool readWrite, QWidget *parent, const infrared = 0; #endif //toggleBeamReceive( ); - + //mMainWindow->toolBar()->show(); // we have a toolbar repainting error on the Zaurus when starting KA/Pi - QTimer::singleShot( 10000, this , SLOT ( updateToolBar())); + QTimer::singleShot( 10, this , SLOT ( updateToolBar())); } void KABCore::updateToolBar() { - mMainWindow->toolBar()->update(); + static int iii = 0; + ++iii; + mMainWindow->toolBar()->repaintMe(); + if ( iii < 5 ) + QTimer::singleShot( 10, this , SLOT ( updateToolBar())); } KABCore::~KABCore() { -- cgit v0.9.0.2