Back to index

texmacs  1.0.7.15
QTMWindow.cpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : QTMWindow.cpp
00004 * DESCRIPTION: QT Texmacs window class
00005 * COPYRIGHT  : (C) 2009 Massimiliano Gubinelli
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #include <QtGui>
00013 
00014 #include "gui.hpp"
00015 #include "QTMWindow.hpp"
00016 #include "QTMWidget.hpp"
00017 #include "message.hpp"
00018 
00019 #include <QEvent>
00020 
00021 void QTMWindow::closeEvent ( QCloseEvent *event )
00022 {
00023   if (DEBUG_QT)   cout << "CLOSE WINDOW" << LF;
00024   qt_tm_widget_rep *wid = tm_widget ();
00025   if (wid) {
00026     wid -> quit ();
00027     needs_update ();
00028     event -> ignore ();
00029   }
00030  // QMainWindow::closeEvent (event);
00031 }
00032 
00033 void QTMPlainWindow::closeEvent ( QCloseEvent *event )
00034 {
00035   if (DEBUG_QT)   cout << "CLOSE PLAIN WINDOW" << LF;
00036   (void) event;
00037   emit closed();
00038 }