mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kio: check only the major poppler version in poppler metadata plugin
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7a4ebe677f
commit
010a2f9054
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@
|
|||
#include <poppler/cpp/poppler-version.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#if POPPLER_VERSION_MAJOR >= 22 && POPPLER_VERSION_MINOR >= 5
|
||||
#if POPPLER_VERSION_MAJOR >= 23
|
||||
typedef time_t popplertimetype;
|
||||
#else
|
||||
typedef poppler::time_type popplertimetype;
|
||||
|
@ -144,7 +144,7 @@ QList<KFileMetaInfoItem> KFileMetaDataPopplerPlugin::metaData(const QString &pat
|
|||
)
|
||||
);
|
||||
}
|
||||
#if POPPLER_VERSION_MAJOR >= 22 && POPPLER_VERSION_MINOR >= 5
|
||||
#if POPPLER_VERSION_MAJOR >= 23
|
||||
const QString popplercreationdate = getTime(popplerdocument->get_creation_date_t());
|
||||
#else
|
||||
const QString popplercreationdate = getTime(popplerdocument->get_creation_date());
|
||||
|
@ -157,7 +157,7 @@ QList<KFileMetaInfoItem> KFileMetaDataPopplerPlugin::metaData(const QString &pat
|
|||
)
|
||||
);
|
||||
}
|
||||
#if POPPLER_VERSION_MAJOR >= 22 && POPPLER_VERSION_MINOR >= 5
|
||||
#if POPPLER_VERSION_MAJOR >= 23
|
||||
const QString popplermodificationdate = getTime(popplerdocument->get_modification_date_t());
|
||||
#else
|
||||
const QString popplermodificationdate = getTime(popplerdocument->get_modification_date());
|
||||
|
|
Loading…
Add table
Reference in a new issue