Commit bd57b36c authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Add TODO for the future to fix requestFontData function

parent 2ed253a5
......@@ -5105,7 +5105,10 @@ QByteArray Document::fontData(const FontInfo &font) const
if (d->m_generator)
// clang-format off
// Otherwise the Q_ARG(QByteArray* gets broken
QMetaObject::invokeMethod(d->m_generator, "requestFontData", Qt::DirectConnection, Q_ARG(Okular::FontInfo, font), Q_ARG(QByteArray*, &result));
// clang-format on
return result;
......@@ -598,6 +598,7 @@ class OKULARCORE_EXPORT Generator : public QObject
* @since 0.8 (KDE 4.1)
// TODO Make it return a QByteArray and be virtual when a BIC change happens somewhere else
void requestFontData(const Okular::FontInfo &font, QByteArray *data);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment