~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to mplayerthumbs/src/videopreview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
      return false;
70
70
      kDebug(DBG_AREA) << "cannot preview: " << videoBackend->cannotPreview() << endl;
71
71
    }
72
 
    
 
72
 
73
73
    Thumbnail *thumbnail=previewingFile->getPreview(videoBackend, 40, 4, sequenceIndex());
74
74
    if(!thumbnail || ! thumbnail->imageIsValid() ) return false;
75
75
    delete videoBackend;
83
83
        QPainter painter( &pix );
84
84
        QPixmap sprocket;
85
85
 
86
 
        kDebug(DBG_AREA) << "videopreview: using strip image sprocket: " << KStandardDirs::locate( "data", "videothumbnail/sprocket-small.png" ) << endl;
 
86
        kDebug(DBG_AREA) << "videopreview: using strip image sprocket: " << KStandardDirs::locate( "data", QLatin1String( "videothumbnail/sprocket-small.png" ) ) << endl;
87
87
        if (pix.height() < 60)
88
 
            sprocket = QPixmap(KStandardDirs::locate( "data", "videothumbnail/sprocket-small.png" ));
 
88
            sprocket = QPixmap(KStandardDirs::locate( "data", QLatin1String( "videothumbnail/sprocket-small.png" ) ));
89
89
        else if (pix.height() < 90)
90
 
            sprocket = QPixmap(KStandardDirs::locate( "data", "videothumbnail/sprocket-medium.png" ));
 
90
            sprocket = QPixmap(KStandardDirs::locate( "data", QLatin1String( "videothumbnail/sprocket-medium.png" ) ));
91
91
        else
92
 
            sprocket = QPixmap(KStandardDirs::locate( "data", "videothumbnail/sprocket-large.png" ));
 
92
            sprocket = QPixmap(KStandardDirs::locate( "data", QLatin1String( "videothumbnail/sprocket-large.png" ) ));
93
93
 
94
94
        for (int y = 0; y < pix.height() + sprocket.height(); y += sprocket.height()) {
95
95
            painter.drawPixmap( 0, y, sprocket );