summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-03-19 13:29:51 (UTC)
committer llornkcor <llornkcor>2002-03-19 13:29:51 (UTC)
commitf6b540e14072d9cfcd5f4a787dcd9039fae7011b (patch) (unidiff)
treed0505f71c851a7156862c0fb67c8c640f8c49205
parent3ed6f60e2eb329edda0d3786c58009d06c7e5b18 (diff)
downloadopie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.zip
opie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.tar.gz
opie-f6b540e14072d9cfcd5f4a787dcd9039fae7011b.tar.bz2
searchbar was being shown when text opened from setDocument
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp9
-rw-r--r--core/apps/textedit/textedit.h2
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 )
375 375
376
377 editor = new QpeEditor( this ); 376 editor = new QpeEditor( this );
@@ -523,2 +522,7 @@ void TextEdit::fileOpen()
523 setCaption(caption().right(caption().length()-1)); 522 setCaption(caption().right(caption().length()-1));
523 doSearchBar();
524}
525
526void TextEdit::doSearchBar()
527{
524 Config cfg("TextEdit"); 528 Config cfg("TextEdit");
@@ -526,3 +530,3 @@ void TextEdit::fileOpen()
526 if(cfg.readEntry("SearchBar","Closed") != "Opened") 530 if(cfg.readEntry("SearchBar","Closed") != "Opened")
527 searchBar->hide(); 531 searchBar->hide();
528} 532}
@@ -851,2 +855,3 @@ void TextEdit::setDocument(const QString& fileref)
851 edited=TRUE; 855 edited=TRUE;
856 doSearchBar();
852} 857}
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:
63 void closeEvent( QCloseEvent *e ); 63 void closeEvent( QCloseEvent *e );
64 64 void doSearchBar();
65private slots: 65private slots: