author | llornkcor <llornkcor> | 2002-03-18 01:11:48 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-18 01:11:48 (UTC) |
commit | 4c0bbc662731b8d3e61f43735fd6131746da306f (patch) (side-by-side diff) | |
tree | f6b1f12bd7e1a6e73a667189bd4600c10b1ec11e /core/apps/textedit/textedit.cpp | |
parent | b02657a01fc513e099c2d66be48d5a7b46cf6074 (diff) | |
download | opie-4c0bbc662731b8d3e61f43735fd6131746da306f.zip opie-4c0bbc662731b8d3e61f43735fd6131746da306f.tar.gz opie-4c0bbc662731b8d3e61f43735fd6131746da306f.tar.bz2 |
added cinocs to file
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 13 |
1 files changed, 12 insertions, 1 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 @@ -357,5 +357,4 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) this, SLOT( search() ) ); - a = new QAction( tr( "Find Next" ), Resource::loadPixmap( "next" ), QString::null, 0, this, 0 ); connect( a, SIGNAL( activated() ), this, SLOT( findNext() ) ); @@ -518,4 +517,8 @@ void TextEdit::fileOpen() if(caption().left(1)=="*") setCaption(caption().right(caption().length()-1)); + Config cfg("TextEdit"); + cfg.setGroup("View"); + if(cfg.readEntry("SearchBar","Closed") != "Opened") + searchBar->hide(); } @@ -572,4 +575,8 @@ void TextEdit::editFind() searchVisible = TRUE; searchEdit->setFocus(); + Config cfg("TextEdit"); + cfg.setGroup("View"); + cfg.writeEntry("SearchBar","Opened"); + } @@ -584,4 +591,8 @@ void TextEdit::findClose() searchVisible = FALSE; searchBar->hide(); + Config cfg("TextEdit"); + cfg.setGroup("View"); + cfg.writeEntry("SearchBar","Closed"); + cfg.write(); } |