mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
provide the title of the document, if it has any
svn path=/trunk/KDE/kdegraphics/okular/; revision=716089
This commit is contained in:
parent
50b73a93b1
commit
4edda7b967
|
@ -210,6 +210,15 @@ bool DjVuGenerator::print( KPrinter& printer )
|
|||
return false;
|
||||
}
|
||||
|
||||
QVariant DjVuGenerator::metaData( const QString &key, const QVariant &option ) const
|
||||
{
|
||||
if ( key == "DocumentTitle" )
|
||||
{
|
||||
return m_djvu->metaData( "title" );
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
Okular::TextPage* DjVuGenerator::textPage( Okular::Page *page )
|
||||
{
|
||||
userMutex()->lock();
|
||||
|
|
|
@ -37,6 +37,8 @@ class DjVuGenerator : public Okular::Generator
|
|||
// printing
|
||||
bool print( KPrinter& printer );
|
||||
|
||||
QVariant metaData( const QString & key, const QVariant & option ) const;
|
||||
|
||||
protected:
|
||||
// pixmap generation
|
||||
QImage image( Okular::PixmapRequest *request );
|
||||
|
|
Loading…
Reference in a new issue