mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
windows build fixed
This commit is contained in:
@@ -92,11 +92,15 @@ ReportEnginePrivate::ReportEnginePrivate(QObject *parent) :
|
||||
connect(m_datasources,SIGNAL(loadCollectionFinished(QString)),this,SLOT(slotDataSourceCollectionLoaded(QString)));
|
||||
connect(m_fileWatcher,SIGNAL(fileChanged(const QString &)),this,SLOT(slotLoadFromFile(const QString &)));
|
||||
|
||||
QDir pluginsDir( "./lib" );
|
||||
QDir pluginsDir = QCoreApplication::applicationDirPath();
|
||||
pluginsDir.cd("../lib" );
|
||||
if (!pluginsDir.exists()){
|
||||
pluginsDir.setPath("../lib");
|
||||
pluginsDir.cd("./lib");
|
||||
if (!pluginsDir.exists()) pluginsDir.setPath(QCoreApplication::applicationDirPath());
|
||||
}
|
||||
|
||||
qDebug()<<pluginsDir.path();
|
||||
|
||||
foreach( const QString& pluginName, pluginsDir.entryList( QDir::Files ) ) {
|
||||
QPluginLoader loader( pluginsDir.absoluteFilePath( pluginName ) );
|
||||
if( loader.load() ) {
|
||||
|
||||
Reference in New Issue
Block a user