~ubuntu-branches/ubuntu/raring/calligra/raring-proposed

« back to all changes in this revision

Viewing changes to tools/thumbnail/calligracreator.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-01-15 17:26:10 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20130115172610-b193s9546hyssmym
Tags: 1:2.5.94-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    KoStore *store = KoStore::createStore(path, KoStore::Read);
59
59
 
60
60
    if (store &&
 
61
         // ODF thumbnail?
61
62
        (store->open(QLatin1String("Thumbnails/thumbnail.png")) ||
62
 
         store->open(QLatin1String("preview.png")))) {
 
63
         // old KOffice/Calligra thumbnail?
 
64
         store->open(QLatin1String("preview.png")) ||
 
65
         // OOXML?
 
66
         store->open(QLatin1String("docProps/thumbnail.jpeg")))) {
63
67
        // Hooray! No long delay for the user...
64
68
        const QByteArray thumbnailData = store->read(store->size());
65
69