-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 | |||
@@ -373,7 +373,6 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
373 | 373 | ||
374 | searchBar->hide(); | 374 | searchBar->hide(); |
375 | 375 | ||
376 | |||
377 | editor = new QpeEditor( this ); | 376 | editor = new QpeEditor( this ); |
378 | setCentralWidget( editor ); | 377 | setCentralWidget( editor ); |
379 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 378 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
@@ -521,10 +520,15 @@ void TextEdit::fileOpen() | |||
521 | edited=FALSE; | 520 | edited=FALSE; |
522 | if(caption().left(1)=="*") | 521 | if(caption().left(1)=="*") |
523 | setCaption(caption().right(caption().length()-1)); | 522 | setCaption(caption().right(caption().length()-1)); |
523 | doSearchBar(); | ||
524 | } | ||
525 | |||
526 | void TextEdit::doSearchBar() | ||
527 | { | ||
524 | Config cfg("TextEdit"); | 528 | Config cfg("TextEdit"); |
525 | cfg.setGroup("View"); | 529 | cfg.setGroup("View"); |
526 | if(cfg.readEntry("SearchBar","Closed") != "Opened") | 530 | if(cfg.readEntry("SearchBar","Closed") != "Opened") |
527 | searchBar->hide(); | 531 | searchBar->hide(); |
528 | } | 532 | } |
529 | 533 | ||
530 | #if 0 | 534 | #if 0 |
@@ -849,6 +853,7 @@ void TextEdit::setDocument(const QString& fileref) | |||
849 | editor->setEdited(TRUE); | 853 | editor->setEdited(TRUE); |
850 | edited1=FALSE; | 854 | edited1=FALSE; |
851 | edited=TRUE; | 855 | edited=TRUE; |
856 | doSearchBar(); | ||
852 | } | 857 | } |
853 | 858 | ||
854 | void TextEdit::closeEvent( QCloseEvent *e ) | 859 | void TextEdit::closeEvent( QCloseEvent *e ) |
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 | |||
@@ -61,7 +61,7 @@ public slots: | |||
61 | 61 | ||
62 | protected: | 62 | protected: |
63 | void closeEvent( QCloseEvent *e ); | 63 | void closeEvent( QCloseEvent *e ); |
64 | 64 | void doSearchBar(); | |
65 | private slots: | 65 | private slots: |
66 | void setDocument(const QString&); | 66 | void setDocument(const QString&); |
67 | void changeFont(); | 67 | void changeFont(); |