Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f3937b1..35f9d3c 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -386,24 +386,25 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
386 | 386 | ||
387 | edit->insertSeparator(); | 387 | edit->insertSeparator(); |
388 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 388 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
389 | connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) ); | 389 | connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) ); |
390 | a->addTo( edit ); | 390 | a->addTo( edit ); |
391 | 391 | ||
392 | searchBar->hide(); | 392 | searchBar->hide(); |
393 | 393 | ||
394 | editor = new QpeEditor( this ); | 394 | editor = new QpeEditor( this ); |
395 | setCentralWidget( editor ); | 395 | setCentralWidget( editor ); |
396 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 396 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
397 | connect( editor, SIGNAL( textChanged() ), this, SLOT( editorChanged() ) ); | 397 | connect( editor, SIGNAL( textChanged() ), this, SLOT( editorChanged() ) ); |
398 | QPEApplication::setStylusOperation( editor, QPEApplication::RightOnHold); | ||
398 | 399 | ||
399 | Config cfg("TextEdit"); | 400 | Config cfg("TextEdit"); |
400 | cfg. setGroup ( "Font" ); | 401 | cfg. setGroup ( "Font" ); |
401 | 402 | ||
402 | QFont defaultFont = editor-> font ( ); | 403 | QFont defaultFont = editor-> font ( ); |
403 | 404 | ||
404 | QString family = cfg. readEntry ( "Family", defaultFont. family ( )); | 405 | QString family = cfg. readEntry ( "Family", defaultFont. family ( )); |
405 | int size = cfg. readNumEntry ( "Size", defaultFont. pointSize ( )); | 406 | int size = cfg. readNumEntry ( "Size", defaultFont. pointSize ( )); |
406 | int weight = cfg. readNumEntry ( "Weight", defaultFont. weight ( )); | 407 | int weight = cfg. readNumEntry ( "Weight", defaultFont. weight ( )); |
407 | bool italic = cfg. readBoolEntry ( "Italic", defaultFont. italic ( )); | 408 | bool italic = cfg. readBoolEntry ( "Italic", defaultFont. italic ( )); |
408 | 409 | ||
409 | defaultFont = QFont ( family, size, weight, italic ); | 410 | defaultFont = QFont ( family, size, weight, italic ); |