From 4c0bbc662731b8d3e61f43735fd6131746da306f Mon Sep 17 00:00:00 2001 From: llornkcor Date: Mon, 18 Mar 2002 01:11:48 +0000 Subject: added cinocs to file --- (limited to 'core/apps/textedit/textedit.cpp') 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 @@ -356,7 +356,6 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) connect( searchEdit, SIGNAL( textChanged( const QString & ) ), this, SLOT( search() ) ); - a = new QAction( tr( "Find Next" ), Resource::loadPixmap( "next" ), QString::null, 0, this, 0 ); connect( a, SIGNAL( activated() ), this, SLOT( findNext() ) ); a->addTo( searchBar ); @@ -419,7 +418,7 @@ TextEdit::~TextEdit() cfg.writeEntry("Bold",f.bold()); cfg.writeEntry("Italic",f.italic()); cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth); - cfg.writeEntry( "FileView", viewSelection ); + cfg.writeEntry( "FileView", viewSelection ); } void TextEdit::zoomIn() @@ -517,6 +516,10 @@ void TextEdit::fileOpen() edited=FALSE; if(caption().left(1)=="*") setCaption(caption().right(caption().length()-1)); + Config cfg("TextEdit"); + cfg.setGroup("View"); + if(cfg.readEntry("SearchBar","Closed") != "Opened") + searchBar->hide(); } #if 0 @@ -571,6 +574,10 @@ void TextEdit::editFind() searchBar->show(); searchVisible = TRUE; searchEdit->setFocus(); + Config cfg("TextEdit"); + cfg.setGroup("View"); + cfg.writeEntry("SearchBar","Opened"); + } void TextEdit::findNext() @@ -583,6 +590,10 @@ void TextEdit::findClose() { searchVisible = FALSE; searchBar->hide(); + Config cfg("TextEdit"); + cfg.setGroup("View"); + cfg.writeEntry("SearchBar","Closed"); + cfg.write(); } void TextEdit::search() -- cgit v0.9.0.2