summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 834971a..8004771 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -270,3 +270,2 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
270 270
271//
272 a = new QAction( tr( "Save" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 ); 271 a = new QAction( tr( "Save" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 );
@@ -406,12 +405,4 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
406 updateCaption(); 405 updateCaption();
407 if( qApp->argc() > 1 ) { 406
408 for (int i=1;i< qApp->argc();i++) { 407 fileNew();
409 QString tmp;
410 currentFileName = tmp.sprintf("%s",qApp->argv()[i]);
411 qDebug(currentFileName);
412 setDocument( currentFileName );
413 }
414 }
415 else
416 fileNew();
417} 408}
@@ -628,3 +619,3 @@ void TextEdit::newFile( const DocLnk &f )
628 doc = new DocLnk(nf); 619 doc = new DocLnk(nf);
629// updateCaption(); 620 updateCaption(currentFileName);
630} 621}
@@ -770,3 +761,3 @@ void TextEdit::updateCaption( const QString &name )
770 s = doc->name(); 761 s = doc->name();
771 if ( s.isEmpty() ) { 762 if ( s.isEmpty() ) {
772 s = tr( "Unnamed" ); 763 s = tr( "Unnamed" );
@@ -774,2 +765,3 @@ void TextEdit::updateCaption( const QString &name )
774 } 765 }
766
775 setCaption( s + " - " + tr("Text Editor") ); 767 setCaption( s + " - " + tr("Text Editor") );
@@ -781,3 +773,3 @@ void TextEdit::setDocument(const QString& fileref)
781 bFromDocView = TRUE; 773 bFromDocView = TRUE;
782 openFile(DocLnk(fileref)); 774 openFile(DocLnk(fileref));
783// showEditTools(); 775// showEditTools();