~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/pluginhandler.cpp

  • Committer: Adam Reichold
  • Date: 2018-05-13 17:09:14 UTC
  • Revision ID: adam.reichold@t-online.de-20180513170914-9l8zcc70xtwvof10
Add option to eagerly resolve plug-in symbols to be more robust if incompatible libraries are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
{
73
73
    QPluginLoader pluginLoader;
74
74
 
 
75
#ifdef PLUGIN_RESOLVE_ALL
 
76
 
 
77
    pluginLoader.setLoadHints(QLibrary::ResolveAllSymbolsHint);
 
78
 
 
79
#endif // PLUGIN_RESOLVE_ALL
 
80
 
75
81
    const QString localFileName = QDir(QApplication::applicationDirPath()).absoluteFilePath(fileName);
76
82
    pluginLoader.setFileName(localFileName);
77
83