small correction in thumbnail adapter

preferencesAboutTextFull
Anatoly Mihalchenko 13 years ago
parent 09721368a5
commit a409f852d7
  1. 8
      src/adaptors/UBThumbnailAdaptor.cpp
  2. 2
      src/adaptors/UBThumbnailAdaptor.h

@ -62,14 +62,14 @@ QList<QPixmap> UBThumbnailAdaptor::load(UBDocumentProxy* proxy)
thumbCount++;
if (displayMessage && thumbCount == 1)
UBApplication::showMessage(QObject::tr("Generating preview thumbnails ..."));
UBApplication::showMessage(tr("Generating preview thumbnails ..."));
persistScene(proxy->persistencePath(), scene, i);
}
}
if (displayMessage && thumbCount > 0)
UBApplication::showMessage(QObject::tr("%1 thumbnails generated ...").arg(thumbCount));
UBApplication::showMessage(tr("%1 thumbnails generated ...").arg(thumbCount));
}
@ -128,14 +128,14 @@ QPixmap UBThumbnailAdaptor::load(UBDocumentProxy* proxy, int index)
thumbCount++;
if (displayMessage && thumbCount == 1)
UBApplication::showMessage(QObject::tr("Generating preview thumbnails ..."));
UBApplication::showMessage(tr("Generating preview thumbnails ..."));
persistScene(proxy->persistencePath(), scene, i);
}
}
if (displayMessage && thumbCount > 0)
UBApplication::showMessage(QObject::tr("%1 thumbnails generated ...").arg(thumbCount));
UBApplication::showMessage(tr("%1 thumbnails generated ...").arg(thumbCount));
}

@ -23,6 +23,8 @@ class UBGraphicsScene;
class UBThumbnailAdaptor //static class
{
Q_DECLARE_TR_FUNCTIONS(UBThumbnailAdaptor)
private: UBThumbnailAdaptor() {}
public:
static void persistScene(const QString& pDocPath, UBGraphicsScene* pScene, int pageIndex, bool overrideModified = false);

Loading…
Cancel
Save