Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

void Main_window::closeEvent ( QCloseEvent *  event ) [private]

Close query by the system.

Parameters:
eventSystem event who call the quit

Definition at line 2467 of file Mwindow.cpp.

References actionInDialog, cancel_copy_window(), sysTrayIcon, and updateTheCopyStat().

{
      DEBUGCONSOLE(30,"Main_window::closeEvent","Close event detected");
      #if (DEBUG_ULTRACOPIER>0)
      if(event->spontaneous())
            DEBUGCONSOLE(70,"Main_window::closeEvent","event->spontaneous(): True");
      else
            DEBUGCONSOLE(70,"Main_window::closeEvent","event->spontaneous(): False");
      DEBUGCONSOLE(70,"Main_window::closeEvent","event->type(): "+QString::number(event->type()));
      #endif
      //check if it should be reduct in the systray
      if(checkBoxSystray->isChecked() && !this->isHidden() && actionInDialog!=FILEEXIST_CANCEL && actionInDialog!=UC_ERROR_CANCEL)
      {
            event->ignore();
            DEBUGCONSOLE(30,"Main_window::closeEvent","Show systray icon");
            //if is running disable windows info update and update systray icon
            sysTrayIcon->show();
            this->hide();
            updateTheCopyStat();
      }
      else
      {
            event->ignore();
            cancel_copy_window();
      }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index