summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 197b28b..c869dc9 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -341,65 +341,65 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f )
341 connect( wa, SIGNAL( toggled(bool) ), this, SLOT( setWordWrap(bool) ) ); 341 connect( wa, SIGNAL( toggled(bool) ), this, SLOT( setWordWrap(bool) ) );
342 wa->setToggleAction(TRUE); 342 wa->setToggleAction(TRUE);
343 wa->addTo( font ); 343 wa->addTo( font );
344 344
345 font->insertSeparator(); 345 font->insertSeparator();
346 font->insertItem("Font", this, SLOT(changeFont()) ); 346 font->insertItem("Font", this, SLOT(changeFont()) );
347 347
348 mb->insertItem( tr( "File" ), file ); 348 mb->insertItem( tr( "File" ), file );
349 mb->insertItem( tr( "Edit" ), edit ); 349 mb->insertItem( tr( "Edit" ), edit );
350 mb->insertItem( tr( "View" ), font ); 350 mb->insertItem( tr( "View" ), font );
351 351
352 searchBar = new QPEToolBar(this); 352 searchBar = new QPEToolBar(this);
353 addToolBar( searchBar, "Search", QMainWindow::Top, TRUE ); 353 addToolBar( searchBar, "Search", QMainWindow::Top, TRUE );
354 354
355 searchBar->setHorizontalStretchable( TRUE ); 355 searchBar->setHorizontalStretchable( TRUE );
356 356
357 searchEdit = new QLineEdit( searchBar, "searchEdit" ); 357 searchEdit = new QLineEdit( searchBar, "searchEdit" );
358 searchBar->setStretchableWidget( searchEdit ); 358 searchBar->setStretchableWidget( searchEdit );
359 connect( searchEdit, SIGNAL( textChanged( const QString & ) ), 359 connect( searchEdit, SIGNAL( textChanged( const QString & ) ),
360 this, SLOT( search() ) ); 360 this, SLOT( search() ) );
361 361
362 362
363 a = new QAction( tr( "Find Next" ), Resource::loadPixmap( "next" ), QString::null, 0, this, 0 ); 363 a = new QAction( tr( "Find Next" ), Resource::loadPixmap( "next" ), QString::null, 0, this, 0 );
364 connect( a, SIGNAL( activated() ), this, SLOT( findNext() ) ); 364 connect( a, SIGNAL( activated() ), this, SLOT( findNext() ) );
365 a->addTo( searchBar ); 365 a->addTo( searchBar );
366 a->addTo( edit ); 366 a->addTo( edit );
367 367
368 a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); 368 a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
369 connect( a, SIGNAL( activated() ), this, SLOT( findClose() ) ); 369 connect( a, SIGNAL( activated() ), this, SLOT( findClose() ) );
370 a->addTo( searchBar ); 370 a->addTo( searchBar );
371 371
372 edit->insertSeparator(); 372 edit->insertSeparator();
373 a = new QAction( tr( "Delete" ), Resource::loadPixmap( "delete" ), QString::null, 0, this, 0 ); 373 a = new QAction( tr( "Delete" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
374 connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) ); 374 connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) );
375 a->addTo( edit ); 375 a->addTo( edit );
376 376
377 searchBar->hide(); 377 searchBar->hide();
378 378
379 editorStack = new QWidgetStack( this ); 379 editorStack = new QWidgetStack( this );
380 setCentralWidget( editorStack ); 380 setCentralWidget( editorStack );
381 381
382 searchVisible = FALSE; 382 searchVisible = FALSE;
383 383
384 fileSelector = new FileSelector( "text/*", editorStack, "fileselector" , TRUE, TRUE); //buggy 384 fileSelector = new FileSelector( "text/*", editorStack, "fileselector" , TRUE, TRUE); //buggy
385 connect( fileSelector, SIGNAL( closeMe() ), this, SLOT( showEditTools() ) ); 385 connect( fileSelector, SIGNAL( closeMe() ), this, SLOT( showEditTools() ) );
386 connect( fileSelector, SIGNAL( newSelected( const DocLnk &) ), this, SLOT( newFile( const DocLnk & ) ) ); 386 connect( fileSelector, SIGNAL( newSelected( const DocLnk &) ), this, SLOT( newFile( const DocLnk & ) ) );
387 connect( fileSelector, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( openFile( const DocLnk & ) ) ); 387 connect( fileSelector, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( openFile( const DocLnk & ) ) );
388// fileOpen(); 388// fileOpen();
389 389
390 editor = new QpeEditor( editorStack ); 390 editor = new QpeEditor( editorStack );
391 editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); 391 editor->setFrameStyle( QFrame::Panel | QFrame::Sunken );
392 editorStack->addWidget( editor, get_unique_id() ); 392 editorStack->addWidget( editor, get_unique_id() );
393 393
394 resize( 200, 300 ); 394 resize( 200, 300 );
395 395
396// setFontSize(defsize,TRUE); 396// setFontSize(defsize,TRUE);
397 FontDatabase fdb; 397 FontDatabase fdb;
398 QFont defaultFont=editor->font(); 398 QFont defaultFont=editor->font();
399 QFontInfo fontInfo(defaultFont); 399 QFontInfo fontInfo(defaultFont);
400 400
401 cfg.setGroup("Font"); 401 cfg.setGroup("Font");
402 QString family = cfg.readEntry("Family", fontInfo.family()); 402 QString family = cfg.readEntry("Family", fontInfo.family());
403 QString style = cfg.readEntry("Style", fdb.styleString(defaultFont)); 403 QString style = cfg.readEntry("Style", fdb.styleString(defaultFont));
404 int i_size = cfg.readNumEntry("Size", fontInfo.pointSize()/10); 404 int i_size = cfg.readNumEntry("Size", fontInfo.pointSize()/10);
405 QString charSet = cfg.readEntry("CharSet", QFont::encodingName( fontInfo.charSet()) ); 405 QString charSet = cfg.readEntry("CharSet", QFont::encodingName( fontInfo.charSet()) );