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

void main_windows::closeEvent ( QCloseEvent *  e  )  [protected, virtual]

On close event.

Definition at line 204 of file main_windows.cpp.

References ClientSocket::Disconnect(), saveWindowSize(), and writeHistoryFile().

{
      debugQt("main_windows::closeEvent(QCloseEvent *e)");
      if (trayicon->isVisible())
      {
            this->hide ();
            logform->hide();
            e->ignore();
      }
      else
      {
            // write address history
            writeHistoryFile();
            saveWindowSize();
            logform->close();
            logform->deleteLater();
            if (connected) clientsocket->Disconnect(); //if connected, disconnect
            QTimer::singleShot(800, qApp, SLOT(quit())); // wait before quit
            e->accept();
      }
}


Generated by  Doxygen 1.6.0   Back to index