-rw-r--r-- | core/apps/textedit/textedit.cpp | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 7b50a6c..6844023 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -389,3 +389,3 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
389 | 389 | ||
390 | cfg. setGroup ( "Font" ); | 390 | cfg. setGroup ( "Font" ); |
391 | 391 | ||
@@ -410,4 +410,4 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
410 | 410 | ||
411 | bool wrap = cfg. readBoolEntry ( "Wrap", true ); | 411 | bool wrap = cfg. readBoolEntry ( "Wrap", true ); |
412 | wa-> setOn ( wrap ); | 412 | wa-> setOn ( wrap ); |
413 | setWordWrap ( wrap ); | 413 | setWordWrap ( wrap ); |
@@ -430,4 +430,4 @@ TextEdit::~TextEdit() { | |||
430 | void TextEdit::cleanUp() { | 430 | void TextEdit::cleanUp() { |
431 | qDebug("cleanUp");// save(); | 431 | qDebug("cleanUp");// save(); |
432 | 432 | ||
433 | Config cfg ( "TextEdit" ); | 433 | Config cfg ( "TextEdit" ); |
@@ -443,3 +443,3 @@ void TextEdit::cleanUp() { | |||
443 | cfg. writeEntry ( "FileView", viewSelection ); | 443 | cfg. writeEntry ( "FileView", viewSelection ); |
444 | cfg. writeEntry ( "AdvancedFeatures", useAdvancedFeatures ); | 444 | cfg. writeEntry ( "AdvancedFeatures", useAdvancedFeatures ); |
445 | } | 445 | } |
@@ -626,3 +626,4 @@ void TextEdit::openFile( const QString &f ) { | |||
626 | switch ( QMessageBox::warning(this,tr("Text Editor"), | 626 | switch ( QMessageBox::warning(this,tr("Text Editor"), |
627 | tr("Text Editor has detected<BR>you selected a <B>.desktop</B> file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | 627 | tr("Text Editor has detected<BR>you selected a <B>.desktop</B> |
628 | file.<BR>Open <B>.desktop</B> file or <B>linked</B> file?"), | ||
628 | tr(".desktop File"),tr("Linked Document"),0,1,1) ) { | 629 | tr(".desktop File"),tr("Linked Document"),0,1,1) ) { |
@@ -637,6 +638,6 @@ void TextEdit::openFile( const QString &f ) { | |||
637 | } else { | 638 | } else { |
638 | DocLnk sf(f); | 639 | DocLnk sf(f); |
639 | filer = sf.file(); | 640 | filer = sf.file(); |
640 | // filer = f; | 641 | if(filer.right(1) == "/") |
641 | // fileIs = TRUE; | 642 | filer = f; |
642 | } | 643 | } |
@@ -884,12 +885,12 @@ void TextEdit::closeEvent( QCloseEvent *e ) { | |||
884 | void TextEdit::changeFont() { | 885 | void TextEdit::changeFont() { |
885 | QDialog *d = new QDialog ( this, "FontDialog", true ); | 886 | QDialog *d = new QDialog ( this, "FontDialog", true ); |
886 | d-> setCaption ( tr( "Choose font" )); | 887 | d-> setCaption ( tr( "Choose font" )); |
887 | QBoxLayout *lay = new QVBoxLayout ( d ); | 888 | QBoxLayout *lay = new QVBoxLayout ( d ); |
888 | OFontSelector *ofs = new OFontSelector ( true, d ); | 889 | OFontSelector *ofs = new OFontSelector ( true, d ); |
889 | lay-> addWidget ( ofs ); | 890 | lay-> addWidget ( ofs ); |
890 | ofs-> setSelectedFont ( editor-> font ( )); | 891 | ofs-> setSelectedFont ( editor-> font ( )); |
891 | 892 | ||
892 | d-> showMaximized ( ); | 893 | d-> showMaximized ( ); |
893 | if ( d-> exec ( ) == QDialog::Accepted ) | 894 | if ( d-> exec ( ) == QDialog::Accepted ) |
894 | editor-> setFont ( ofs-> selectedFont ( )); | 895 | editor-> setFont ( ofs-> selectedFont ( )); |
895 | delete d; | 896 | delete d; |