Changeset 5086 in ntrip for trunk/GnssCenter/main
- Timestamp:
- Apr 1, 2013, 10:27:33 AM (12 years ago)
- Location:
- trunk/GnssCenter/main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/main/app.cpp
r5001 r5086 44 44 } 45 45 } 46 47 // 48 //////////////////////////////////////////////////////////////////////////// 49 void t_app::slotMessage(QByteArray msg) { 50 qDebug() << msg; 51 } -
trunk/GnssCenter/main/app.h
r5001 r5086 18 18 const QString& confFileName() const {return _confFileName;} 19 19 20 public slots: 21 void slotMessage(QByteArray msg); 22 20 23 private: 21 24 QString _confFileName; -
trunk/GnssCenter/main/mainwin.cpp
r5061 r5086 19 19 #include "settings.h" 20 20 #include "mdiarea.h" 21 #include "app.h" 21 22 22 23 using namespace std; … … 135 136 t_pluginAction* action = dynamic_cast<t_pluginAction*>(sender()); 136 137 QWidget* widget = action->_factIface->create(); 138 t_app* app = dynamic_cast<t_app*>(qApp); 139 if (app) { 140 const QMetaObject* metaObj = widget->metaObject(); 141 QByteArray bncMessageName = QMetaObject::normalizedSignature("bncMessage(QByteArray)"); 142 if (metaObj->indexOfSignal(bncMessageName) != -1) { 143 connect(widget, SIGNAL(bncMessage(QByteArray)), app, SLOT(slotMessage(QByteArray))); 144 } 145 } 137 146 widget->setMinimumSize(500, 300); 138 147 QMdiSubWindow* subWindow = _mdi->addSubWindow((QWidget*) widget);
Note:
See TracChangeset
for help on using the changeset viewer.