-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 | ||||
-rw-r--r-- | core/apps/textedit/textedit.h | 2 |
2 files changed, 8 insertions, 3 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(); } diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index a70b581..70cf068 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h @@ -63,3 +63,3 @@ protected: void closeEvent( QCloseEvent *e ); - + void doSearchBar(); private slots: |