--===============0846572268== Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=nextPart1679809.QyYeP7pWWi Content-transfer-encoding: 7bit --nextPart1679809.QyYeP7pWWi Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I want to a progress bar in the status bar for a collection building(and=20 update). However, it just show once, the next time I call my method the=20 widget in the statusbar doesn't show at all. Here a fragment of code: void KamefuMainWindow::buildComplete() { kdDebug() << k_funcinfo << endl; =20 d->progressBuildCollection->setProgress(0); =20 statusBar()->removeWidget(d->progressBuildCollection); d->progressBuildCollection->hide(); statusBar()->removeItem(0); statusBar()->clear(); } =20 void KamefuMainWindow::buildCollection() { kdDebug() << k_funcinfo << "Building collection." << endl; =20 d->buildProgress =3D 0; d->totalItems =3D 0; =20 statusBar()->insertItem(i18n("Building collection..."), 0); =20 statusBar()->addWidget(d->progressBuildCollection); d->progressBuildCollection->show(); =20 // Fill KURL list with selected Directories from Preferences. KURL::List urlList; QStringList selectedDirectories =3D=20 KamefuPreferences::self()->collectionDirectories(); QStringList::const_iterator it; QStringList::const_iterator itEnd =3D selectedDirectories.end(); =20 for( it =3D selectedDirectories.begin(); it !=3D itEnd; ++it ) { urlList.append( KURL(*it) ); } =20 d->cBuilder->setDirectoryList( urlList ); =20 d->cBuilder->startBuild( KamefuPreferences::self()->collectionRecursive() )= ; //=20 recursive } =2D-=20 Micha=EBl Larouche (Shock The Dark Mage) KDE developer working on Kopete, Kamefu...on dial-up :P =2D------------------------------------- Blog: http://mlarouche.blogspot.com/ MSN/Email: michael.larouche@kdemail.net IRC: irc.freenode.org/DarkShock on #kopete, #kde-devel, #kde4-devel, #plasm= a,=20 #kamefu Jabber: darkshock@myjabber.net, darkshock@linux-quebec.org,=20 darkshock@gmail.com AIM: darkshock19 Gadu-Gadu: 1172438 ICQ: 29644783 Yahoo: darkshock_TT --nextPart1679809.QyYeP7pWWi Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDm3wCt7fy8Lo59wsRAgVXAJ4r5sfm57bWX+pSoYGjM3mu+8J3+QCgv4xt fG0qzR+eQC7/6A9AfQqIFuI= =EOQe -----END PGP SIGNATURE----- --nextPart1679809.QyYeP7pWWi-- --===============0846572268== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0846572268==--