summaryrefslogtreecommitdiff
path: root/core/apps/textedit/textedit.cpp
Side-by-side diff
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 68ee1b4..d3f5fb4 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -358,3 +358,2 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
-
a = new QAction( tr( "Find Next" ), Resource::loadPixmap( "next" ), QString::null, 0, this, 0 );
@@ -421,3 +420,3 @@ TextEdit::~TextEdit()
cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth);
- cfg.writeEntry( "FileView", viewSelection );
+ cfg.writeEntry( "FileView", viewSelection );
}
@@ -519,2 +518,6 @@ void TextEdit::fileOpen()
setCaption(caption().right(caption().length()-1));
+ Config cfg("TextEdit");
+ cfg.setGroup("View");
+ if(cfg.readEntry("SearchBar","Closed") != "Opened")
+ searchBar->hide();
}
@@ -573,2 +576,6 @@ void TextEdit::editFind()
searchEdit->setFocus();
+ Config cfg("TextEdit");
+ cfg.setGroup("View");
+ cfg.writeEntry("SearchBar","Opened");
+
}
@@ -585,2 +592,6 @@ void TextEdit::findClose()
searchBar->hide();
+ Config cfg("TextEdit");
+ cfg.setGroup("View");
+ cfg.writeEntry("SearchBar","Closed");
+ cfg.write();
}