texteditor.cpp
changeset 390 0e1aeb21cb78
parent 389 bb94eec7c8f3
child 393 053b8645e3e9
     1.1 --- a/texteditor.cpp	Thu Sep 21 13:48:05 2006 +0000
     1.2 +++ b/texteditor.cpp	Mon Oct 16 12:42:54 2006 +0000
     1.3 @@ -1,20 +1,5 @@
     1.4  #include "texteditor.h"
     1.5  
     1.6 -#include <QPainter>
     1.7 -#include <QPrinter>
     1.8 -#include <QFile>
     1.9 -#include <QFileDialog>
    1.10 -#include <qmenubar.h>
    1.11 -#include <qtextstream.h>
    1.12 -#include <QSettings>
    1.13 -#include <QFontDialog>
    1.14 -#include <QMessageBox>
    1.15 -#include <QColorDialog>
    1.16 -#include <QRegExp>
    1.17 -#include <QList>
    1.18 -#include <QPixmap>
    1.19 -#include <QCloseEvent>
    1.20 -
    1.21  #include <iostream>
    1.22  #include <cstdlib>
    1.23  #include <typeinfo>
    1.24 @@ -511,7 +496,8 @@
    1.25  void TextEditor::closeEvent( QCloseEvent* ce )
    1.26  {
    1.27      ce->accept();	// TextEditor can be reopened with show()
    1.28 -    actionViewToggleNoteEditor->setOn (false);
    1.29 +	emit (textEditorClosed() );
    1.30 +	cout << "TE closed\n";
    1.31      showwithmain=false;
    1.32      return;
    1.33  }