/[svn]/qsampler/trunk/src/qsamplerMainForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.ui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by capela, Wed Jun 9 20:24:48 2004 UTC revision 127 by capela, Mon Jun 14 21:05:20 2004 UTC
# Line 252  void qsamplerMainForm::closeEvent ( QClo Line 252  void qsamplerMainForm::closeEvent ( QClo
252  }  }
253    
254    
255    // Window drag-n-drop event handlers.
256  void qsamplerMainForm::dragEnterEvent ( QDragEnterEvent* pDragEnterEvent )  void qsamplerMainForm::dragEnterEvent ( QDragEnterEvent* pDragEnterEvent )
257  {  {
258      bool bAccept = false;      bool bAccept = false;
# Line 276  void qsamplerMainForm::dropEvent ( QDrop Line 277  void qsamplerMainForm::dropEvent ( QDrop
277  }  }
278    
279    
280    // Context menu event handler.
281    void qsamplerMainForm::contextMenuEvent( QContextMenuEvent *pEvent )
282    {
283        stabilizeForm();
284        
285        editMenu->exec(pEvent->globalPos());
286    }
287    
288    
289  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
290  // qsamplerMainForm -- Brainless public property accessors.  // qsamplerMainForm -- Brainless public property accessors.
291    
# Line 1462  void qsamplerMainForm::stopServer (void) Line 1472  void qsamplerMainForm::stopServer (void)
1472      // And try to stop server.      // And try to stop server.
1473      if (m_pServer) {      if (m_pServer) {
1474          appendMessages(tr("Server is stopping..."));          appendMessages(tr("Server is stopping..."));
1475          if (m_pServer->isRunning()) {          if (m_pServer->isRunning())
1476              m_pServer->tryTerminate();              m_pServer->tryTerminate();
             return;  
         }  
1477       }       }
1478    
1479        // Give it some time to terminate gracefully and stabilize...
1480        QTime t;
1481        t.start();
1482        while (t.elapsed() < QSAMPLER_TIMER_MSECS)
1483            QApplication::eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
1484    
1485       // Do final processing anyway.       // Do final processing anyway.
1486       processServerExit();       processServerExit();
1487  }  }

Legend:
Removed from v.119  
changed lines
  Added in v.127

  ViewVC Help
Powered by ViewVC