~dandrader/unity8/multiSurfaceApp

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/ApplicationScreenshotProvider.cpp

move screenshots out of the Dash dir

This was consuming 2.5 megs of installed size while they really are
only used for testing.
Approved by: Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        return QImage();
45
45
    }
46
46
 
 
47
    QString screenshot = app->screenshot();
 
48
    // QImage doesn't understand qrc:/// but we have QUrls in use which don't like the empty protcol ":/"
 
49
    screenshot.replace("qrc:///", ":/");
 
50
 
47
51
    QImage image;
48
 
    if (!image.load(app->screenshot())) {
49
 
        qWarning() << "failed loading app image" << app->screenshot();
 
52
    if (!image.load(screenshot)) {
 
53
        qWarning() << "failed loading app image" << screenshot;
50
54
    }
51
55
 
52
56