summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp11
-rw-r--r--core/apps/textedit/textedit.h3
-rw-r--r--core/apps/textedit/textedit.pro4
3 files changed, 12 insertions, 6 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index d3f5fb4..f56d5d3 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -237,4 +237,5 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
edited1=FALSE;
setToolBarsMovable( FALSE );
+ connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) );
setIcon( Resource::loadPixmap( "TextEditor" ) );
@@ -408,8 +409,7 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
}
-TextEdit::~TextEdit()
+void TextEdit::cleanUp()
{
// save();
-
Config cfg("TextEdit");
cfg.setGroup("View");
@@ -419,5 +419,10 @@ TextEdit::~TextEdit()
cfg.writeEntry("Italic",f.italic());
cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth);
- cfg.writeEntry( "FileView", viewSelection );
+ cfg.writeEntry( "FileView", viewSelection );
+
+}
+
+TextEdit::~TextEdit()
+{
}
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h
index aca2933..a70b581 100644
--- a/core/apps/textedit/textedit.h
+++ b/core/apps/textedit/textedit.h
@@ -72,4 +72,5 @@ private slots:
bool save();
bool saveAs();
+ void cleanUp();
@@ -112,5 +113,5 @@ private:
bool searchVisible;
bool bFromDocView;
- int viewSelection;
+ int viewSelection;
QAction *zin, *zout;
QString currentFileName;
diff --git a/core/apps/textedit/textedit.pro b/core/apps/textedit/textedit.pro
index 1301aed..37ddf15 100644
--- a/core/apps/textedit/textedit.pro
+++ b/core/apps/textedit/textedit.pro
@@ -12,4 +12,4 @@ LIBS += -lqpe
TARGET = textedit
-TRANSLATIONS = ../i18n/de/textedit.ts
-TRANSLATIONS = ../i18n/pt_BR/textedit.ts
+TRANSLATIONS += ../i18n/de/textedit.ts
+TRANSLATIONS += ../i18n/pt_BR/textedit.ts