Commit a409f852 authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

small correction in thumbnail adapter

parent 09721368
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment