Changeset 5042 in ntrip


Ignore:
Timestamp:
Mar 28, 2013, 5:27:41 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/main/mainwin.cpp

    r5041 r5042  
    4040  foreach (QString fileName, pluginsDir.entryList(QDir::Files)) {
    4141    QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
    42     QObject* plugin = loader.instance();
    43     qDebug() << fileName << plugin;
     42    QObject* object = loader.instance();
     43    qDebug() << fileName << object;
     44
     45    if (object) {
     46      t_pluginInterface* plugin = qobject_cast<t_pluginInterface*>(object);
     47      qDebug() << "Plugin: " << plugin; 
     48    }
    4449  }
    4550
Note: See TracChangeset for help on using the changeset viewer.