mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kdeplasma-addons: correct progress labels text
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5c2aaa8377
commit
e9a984f4bb
1 changed files with 4 additions and 4 deletions
|
@ -263,7 +263,7 @@ void BackgroundListModel::initProgressDialog(KProgressDialog *progress)
|
|||
{
|
||||
progress->setAllowCancel(false);
|
||||
progress->setModal(true);
|
||||
progress->setLabelText(i18n("Finding images for the wallpaper slideshow."));
|
||||
progress->setLabelText(i18n("Finding images for the weather wallpaper."));
|
||||
progress->progressBar()->setRange(0, 0);
|
||||
}
|
||||
|
||||
|
@ -287,12 +287,12 @@ QList<Plasma::Package *> BackgroundListModel::findAllBackgrounds(Plasma::Wallpap
|
|||
QSet<QString> validPackages;
|
||||
foreach (const QString &packagePath, packages) {
|
||||
QCoreApplication::processEvents();
|
||||
progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) +
|
||||
progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") +
|
||||
i18n("Testing %1 for a Wallpaper package", packagePath));
|
||||
Plasma::PackageStructure::Ptr structure = Plasma::Wallpaper::packageStructure(structureParent);
|
||||
Plasma::Package *pkg = new Plasma::Package(path + packagePath, structure);
|
||||
if (pkg->isValid() && (!container || !container->contains(pkg->path()))) {
|
||||
progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) +
|
||||
progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") +
|
||||
i18n("Adding wallpaper package in %1", packagePath));
|
||||
res.append(pkg);
|
||||
//kDebug() << " adding valid package:" << packagePath;
|
||||
|
@ -314,7 +314,7 @@ QList<Plasma::Package *> BackgroundListModel::findAllBackgrounds(Plasma::Wallpap
|
|||
QCoreApplication::processEvents();
|
||||
if (!container || !container->contains(wp.filePath())) {
|
||||
//kDebug() << " adding image file" << wp.filePath();
|
||||
progress->setLabelText(i18n("Finding images for the wallpaper slideshow.") + QLatin1String( "\n\n" ) +
|
||||
progress->setLabelText(i18n("Finding images for the weather wallpaper.") + QLatin1String("\n\n") +
|
||||
i18n("Adding image %1", wp.filePath()));
|
||||
Plasma::PackageStructure::Ptr structure = Plasma::Wallpaper::packageStructure(structureParent);
|
||||
res.append(new Plasma::Package(wp.filePath(), structure));
|
||||
|
|
Loading…
Add table
Reference in a new issue