Changeset 5059 in ntrip for trunk/GnssCenter/main


Ignore:
Timestamp:
Mar 28, 2013, 7:40:12 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/main
Files:
2 edited

Legend:

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

    r5058 r5059  
    136136  t_pluginAction* action = dynamic_cast<t_pluginAction*>(sender());
    137137  qDebug() << "Action" << action;
    138   t_pluginInterface* widget = action->_factIface->create();
    139 //  QMdiSubWindow* win = _mdi->addSubWindow(svgMap);
    140   widget->show();
     138  QWidget* widget = action->_factIface->create();
     139  QMdiSubWindow* subWindow = _mdi->addSubWindow((QWidget*) widget);
     140  subWindow->show();
    141141}
    142142
  • trunk/GnssCenter/main/plugininterface.h

    r5055 r5059  
    22#define GnssCenter_PLUGININTERFACE_H
    33
     4#include <QtGui>
    45#include <QtPlugin>
    56
    67namespace GnssCenter {
    78
    8 class t_pluginInterface {
    9  public:
    10   virtual void show() = 0;
    11 };
    12 
    139class t_pluginFactoryInterface {
    1410 public:
    15   virtual t_pluginInterface* create() = 0;
     11  virtual QWidget* create() = 0;
    1612  virtual QString getName() const = 0;
    1713};
Note: See TracChangeset for help on using the changeset viewer.