author | llornkcor <llornkcor> | 2002-03-19 13:29:51 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-19 13:29:51 (UTC) |
commit | f6b540e14072d9cfcd5f4a787dcd9039fae7011b (patch) (side-by-side diff) | |
tree | d0505f71c851a7156862c0fb67c8c640f8c49205 /core/apps/textedit/textedit.cpp | |
parent | 3ed6f60e2eb329edda0d3786c58009d06c7e5b18 (diff) | |
download | opie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.zip opie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.tar.gz opie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.tar.bz2 |
searchbar was being shown when text opened from setDocument
Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f56d5d3..1a1b186 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -375,3 +375,2 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) - editor = new QpeEditor( this ); @@ -523,2 +522,7 @@ void TextEdit::fileOpen() setCaption(caption().right(caption().length()-1)); + doSearchBar(); +} + +void TextEdit::doSearchBar() +{ Config cfg("TextEdit"); @@ -526,3 +530,3 @@ void TextEdit::fileOpen() if(cfg.readEntry("SearchBar","Closed") != "Opened") - searchBar->hide(); + searchBar->hide(); } @@ -851,2 +855,3 @@ void TextEdit::setDocument(const QString& fileref) edited=TRUE; + doSearchBar(); } |