Changeset View
Changeset View
Standalone View
Standalone View
ImageManager/ThumbnailBuilder.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 79 | { | |||
---|---|---|---|---|---|
89 | if ( m_count >= m_expectedThumbnails ) { | 89 | if ( m_count >= m_expectedThumbnails ) { | ||
90 | terminateScout(); | 90 | terminateScout(); | ||
91 | } | 91 | } | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | void ImageManager::ThumbnailBuilder::buildAll( ThumbnailBuildStart when ) | 94 | void ImageManager::ThumbnailBuilder::buildAll( ThumbnailBuildStart when ) | ||
95 | { | 95 | { | ||
96 | QMessageBox msgBox; | 96 | QMessageBox msgBox; | ||
97 | msgBox.setText(QString::fromLatin1("Buliding all thumbnails may take a long time.")); | 97 | msgBox.setText(i18n("Building all thumbnails may take a long time.")); | ||
98 | msgBox.setInformativeText(QString::fromLatin1("Do you want to rebuild all of your thumbnails?")); | 98 | msgBox.setInformativeText(i18n("Do you want to rebuild all of your thumbnails?")); | ||
99 | msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); | 99 | msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); | ||
100 | msgBox.setDefaultButton(QMessageBox::No); | 100 | msgBox.setDefaultButton(QMessageBox::No); | ||
101 | int ret = msgBox.exec(); | 101 | int ret = msgBox.exec(); | ||
102 | if ( ret == QMessageBox::Yes ) { | 102 | if ( ret == QMessageBox::Yes ) { | ||
103 | ImageManager::ThumbnailCache::instance()->flush(); | 103 | ImageManager::ThumbnailCache::instance()->flush(); | ||
104 | scheduleThumbnailBuild( DB::ImageDB::instance()->images(), when ); | 104 | scheduleThumbnailBuild( DB::ImageDB::instance()->images(), when ); | ||
105 | } | 105 | } | ||
106 | } | 106 | } | ||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |