diff options
Diffstat (limited to 'src/digikam/scanlib.cpp')
-rw-r--r-- | src/digikam/scanlib.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/digikam/scanlib.cpp b/src/digikam/scanlib.cpp index 71ea425c..86e90b3f 100644 --- a/src/digikam/scanlib.cpp +++ b/src/digikam/scanlib.cpp @@ -93,7 +93,7 @@ ScanLib::~ScanLib() void ScanLib::startScan() { struct timeval tv1, tv2; - TQPixmap pix = TDEApplication::kApplication()->iconLoader()->loadIcon( + TQPixmap pix = tdeApp->iconLoader()->loadIcon( "system-run", TDEIcon::NoGroup, 32); TQString message = i18n("Finding non-existent Albums"); @@ -145,7 +145,7 @@ void ScanLib::findFoldersWhichDoNotExist() } } - kapp->processEvents(); + tdeApp->processEvents(); if (!toBeDeleted.isEmpty()) { @@ -200,11 +200,11 @@ void ScanLib::findMissingItems() m_progressBar->setLabel(i18n("Scanning items, please wait...")); m_progressBar->progressBar()->setTotalSteps( countItemsInFolder( albumPath ) ); if (!m_splash) m_progressBar->show(); - kapp->processEvents(); + tdeApp->processEvents(); TQDir dir(albumPath); TQStringList fileList(dir.entryList(TQDir::Dirs)); - TQPixmap pix = TDEApplication::kApplication()->iconLoader()->loadIcon( + TQPixmap pix = tdeApp->iconLoader()->loadIcon( "folder_image", TDEIcon::NoGroup, 32); AlbumDB* db = AlbumManager::instance()->albumDB(); @@ -222,7 +222,7 @@ void ScanLib::findMissingItems() db->commitTransaction(); m_progressBar->hide(); - kapp->processEvents(); + tdeApp->processEvents(); } void ScanLib::updateItemsWithoutDate() @@ -244,7 +244,7 @@ void ScanLib::updateItemsWithoutDate() m_progressBar->progressBar()->setTotalSteps(urls.count()); m_progressBar->setLabel(i18n("Updating items, please wait...")); m_progressBar->show(); - kapp->processEvents(); + tdeApp->processEvents(); TQString basePath = AlbumManager::instance()->getLibraryPath(); basePath = TQDir::cleanDirPath(basePath); @@ -258,7 +258,7 @@ void ScanLib::updateItemsWithoutDate() ++counter; if ( counter % 30 == 0 ) { - kapp->processEvents(); + tdeApp->processEvents(); } TQFileInfo fi(*it); @@ -290,7 +290,7 @@ void ScanLib::updateItemsWithoutDate() db->commitTransaction(); m_progressBar->hide(); - kapp->processEvents(); + tdeApp->processEvents(); } int ScanLib::countItemsInFolder(const TQString& directory) @@ -364,7 +364,7 @@ void ScanLib::allFiles(const TQString& directory) TQFileInfo *fi; m_progressBar->progressBar()->advance(list->count()); - kapp->processEvents(); + tdeApp->processEvents(); while ( (fi = it.current()) != 0 ) { |