Changeset 5430 in ntrip for trunk/GnssCenter/map_stations/map_stations.cpp
- Timestamp:
- Sep 12, 2013, 5:42:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5429 r5430 50 50 QToolBar* toolBar = new QToolBar("t_map_stations_ToolBar"); 51 51 addToolBar(Qt::BottomToolBarArea, toolBar); 52 52 53 QAction* actStartThrift = new QAction("Start Thrift", 0); 53 54 toolBar->addAction(actStartThrift); 54 55 connect(actStartThrift, SIGNAL(triggered()), this, SLOT(slotStartThrift())); 56 57 QAction* actStopThrift = new QAction("Stop Thrift", 0); 58 toolBar->addAction(actStopThrift); 59 connect(actStopThrift, SIGNAL(triggered()), this, SLOT(slotStopThrift())); 55 60 56 61 // Thrift Client; … … 92 97 // 93 98 ///////////////////////////////////////////////////////////////////////////// 99 void t_map_stations::slotStopThrift() { 100 if (_thriftClient && _thriftClient->isRunning()) { 101 _thriftClient->stopAndDestroy(); 102 _thriftClient = 0; 103 } 104 } 105 106 // 107 ///////////////////////////////////////////////////////////////////////////// 94 108 void t_map_stations::putThriftResults(std::vector<t_thriftResult*>* results) { 95 109 QMutexLocker locker(&_mutex); … … 118 132 } 119 133 // end test 120 QTimer::singleShot(1000, this, SLOT(slotPlotResults())); 134 if (_thriftClient) { 135 QTimer::singleShot(1000, this, SLOT(slotPlotResults())); 136 } 121 137 }
Note:
See TracChangeset
for help on using the changeset viewer.