~ubuntu-branches/debian/sid/qpdfview/sid

« back to all changes in this revision

Viewing changes to sources/pluginhandler.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2013-05-26 13:52:50 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20130526135250-s1rhw935iqd8fcfs
Tags: 0.4.3-1
* New upstream release.
* Added menu file and fetch xpm icon file in debian folder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
68
68
 
69
 
    QMimeDatabase mimeDatabase;
70
 
    QMimeType mimeType = mimeDatabase.mimeTypeForFile(filePath, QMimeDatabase::MatchContent);
 
69
    const QMimeType mimeType = QMimeDatabase().mimeTypeForFile(filePath, QMimeDatabase::MatchContent);
71
70
 
72
71
    if(mimeType.name() == "application/pdf")
73
72
    {
118
117
 
119
118
#else
120
119
 
121
 
    QFileInfo fileInfo(filePath);
 
120
    const QFileInfo fileInfo(filePath);
122
121
 
123
122
    if(fileInfo.suffix().toLower() == "pdf")
124
123
    {