summaryrefslogtreecommitdiff
path: root/noncore
authorar <ar>2004-02-08 19:14:56 (UTC)
committer ar <ar>2004-02-08 19:14:56 (UTC)
commit5f698069bca9dde2c8be9ff1bf863ee3a7a33cf0 (patch) (unidiff)
tree525f35c4937c9f4ae99538289c5d1f96c53d7fa7 /noncore
parent2dc8add65c44b3dd240cf2bd3c276c3c0155f46b (diff)
downloadopie-5f698069bca9dde2c8be9ff1bf863ee3a7a33cf0.zip
opie-5f698069bca9dde2c8be9ff1bf863ee3a7a33cf0.tar.gz
opie-5f698069bca9dde2c8be9ff1bf863ee3a7a33cf0.tar.bz2
improve support for BigScreen
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp12
-rw-r--r--noncore/apps/checkbook/checkbook.cpp6
-rw-r--r--noncore/apps/checkbook/mainwindow.cpp11
-rw-r--r--noncore/apps/odict/configdlg.cpp7
-rw-r--r--noncore/apps/odict/searchmethoddlg.cpp7
-rw-r--r--noncore/apps/opie-bartender/bartender.cpp14
-rw-r--r--noncore/apps/opie-console/configdialog.cpp10
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp9
-rw-r--r--noncore/apps/opie-reader/CloseDialog.cpp5
-rw-r--r--noncore/apps/opie-reader/Prefs.cpp5
-rw-r--r--noncore/apps/opie-reader/QTReaderApp.cpp0
-rw-r--r--noncore/apps/opie-reader/ToolbarPrefs.cpp4
-rw-r--r--noncore/apps/opie-reader/URLDialog.cpp5
-rw-r--r--noncore/apps/opie-reader/fileBrowser.cpp5
-rw-r--r--noncore/apps/opie-sheet/mainwindow.cpp9
-rw-r--r--noncore/apps/tableviewer/ui/tveditview.cpp4
-rw-r--r--noncore/apps/tableviewer/ui/tvfilterview.cpp4
-rw-r--r--noncore/apps/tableviewer/ui/tvkeyedit.cpp4
-rw-r--r--noncore/apps/tinykate/libkate/view/kateview.cpp4
-rw-r--r--noncore/apps/zsafe/scqtfileedit.cpp4
-rw-r--r--noncore/apps/zsafe/zsafe.cpp27
-rw-r--r--noncore/comm/keypebble/kvnc.cpp7
23 files changed, 82 insertions, 88 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 26bc36d..78f9da2 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -237,14 +237,13 @@ void AdvancedFm::filePerms() {
237 237
238 filePath = CurrentDir()->canonicalPath()+"/"; 238 filePath = CurrentDir()->canonicalPath()+"/";
239 239
240 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { 240 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) {
241 filePermissions *filePerm; 241 filePermissions *filePerm;
242 filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)(filePath+*it)); 242 filePerm = new filePermissions(this, "Permissions",true,0,(const QString &)(filePath+*it));
243 filePerm->showMaximized(); 243 QPEApplication::execDialog( filePerm );
244 filePerm->exec();
245 if( filePerm) 244 if( filePerm)
246 delete filePerm; 245 delete filePerm;
247 } 246 }
248 populateView(); 247 populateView();
249} 248}
250 249
@@ -259,14 +258,13 @@ void AdvancedFm::doProperties() {
259// qDebug("%d",curFileList.count()); 258// qDebug("%d",curFileList.count());
260 259
261 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) { 260 for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) {
262// qDebug((filePath+*it)); 261// qDebug((filePath+*it));
263 DocLnk lnk( (filePath+*it)); 262 DocLnk lnk( (filePath+*it));
264 LnkProperties prop( &lnk ); 263 LnkProperties prop( &lnk );
265 prop.showMaximized(); 264 QPEApplication::execDialog( &prop );
266 prop.exec();
267 } 265 }
268#endif 266#endif
269 267
270} 268}
271 269
272void AdvancedFm::upDir() { 270void AdvancedFm::upDir() {
@@ -598,14 +596,13 @@ void AdvancedFm::runCommand() {
598 596
599 command << "/bin/sh"; 597 command << "/bin/sh";
600 command << "-c"; 598 command << "-c";
601 command << fileDlg->LineEdit1->text(); 599 command << fileDlg->LineEdit1->text();
602 Output *outDlg; 600 Output *outDlg;
603 outDlg = new Output( command, this, tr("AdvancedFm Output"), true); 601 outDlg = new Output( command, this, tr("AdvancedFm Output"), true);
604 outDlg->showMaximized(); 602 QPEApplication::execDialog( outDlg );
605 outDlg->exec();
606 qApp->processEvents(); 603 qApp->processEvents();
607 604
608 } 605 }
609} 606}
610 607
611void AdvancedFm::runCommandStd() { 608void AdvancedFm::runCommandStd() {
@@ -636,14 +633,13 @@ void AdvancedFm::fileStatus() {
636 command << "/bin/sh"; 633 command << "/bin/sh";
637 command << "-c"; 634 command << "-c";
638 command << "stat -l "+ curFile; 635 command << "stat -l "+ curFile;
639 636
640 Output *outDlg; 637 Output *outDlg;
641 outDlg = new Output( command, this, tr("AdvancedFm Output"), true); 638 outDlg = new Output( command, this, tr("AdvancedFm Output"), true);
642 outDlg->showMaximized(); 639 QPEApplication::execDialog( outDlg );
643 outDlg->exec();
644 qApp->processEvents(); 640 qApp->processEvents();
645} 641}
646 642
647 643
648void AdvancedFm::mkDir() { 644void AdvancedFm::mkDir() {
649 makeDir(); 645 makeDir();
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp
index a42c824..a5492e4 100644
--- a/noncore/apps/checkbook/checkbook.cpp
+++ b/noncore/apps/checkbook/checkbook.cpp
@@ -480,14 +480,13 @@ void Checkbook::slotNewTran()
480 if( !_dLastNew.isNull() ) 480 if( !_dLastNew.isNull() )
481 traninfo->setDate(_dLastNew); 481 traninfo->setDate(_dLastNew);
482 482
483 Transaction *currtran = new Transaction( this, true, info->name(), 483 Transaction *currtran = new Transaction( this, true, info->name(),
484 traninfo, 484 traninfo,
485 _pCfg ); 485 _pCfg );
486 currtran->showMaximized(); 486 if ( QPEApplication::execDialog( currtran ) == QDialog::Accepted )
487 if ( currtran->exec() == QDialog::Accepted )
488 { 487 {
489 // Add to transaction list 488 // Add to transaction list
490 info->addTransaction( traninfo ); 489 info->addTransaction( traninfo );
491 490
492 // Add to transaction table 491 // Add to transaction table
493 float amount; 492 float amount;
@@ -527,14 +526,13 @@ void Checkbook::slotEditTran()
527 526
528 TranInfo *traninfo=info->findTransaction( curritem->text(COL_ID) ); 527 TranInfo *traninfo=info->findTransaction( curritem->text(COL_ID) );
529 528
530 Transaction *currtran = new Transaction( this, false, info->name(), 529 Transaction *currtran = new Transaction( this, false, info->name(),
531 traninfo, 530 traninfo,
532 _pCfg ); 531 _pCfg );
533 currtran->showMaximized(); 532 if ( QPEApplication::execDialog( currtran ) == QDialog::Accepted )
534 if ( currtran->exec() == QDialog::Accepted )
535 { 533 {
536 curritem->setText( COL_NUM, traninfo->number() ); 534 curritem->setText( COL_NUM, traninfo->number() );
537 curritem->setText( COL_SORTDATE, traninfo->datestr(false) ); 535 curritem->setText( COL_SORTDATE, traninfo->datestr(false) );
538 curritem->setText( COL_DATE, traninfo->datestr(true) ); 536 curritem->setText( COL_DATE, traninfo->datestr(true) );
539 curritem->setText( COL_DESC, traninfo->desc() ); 537 curritem->setText( COL_DESC, traninfo->desc() );
540 538
diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp
index f29001a..60aea42 100644
--- a/noncore/apps/checkbook/mainwindow.cpp
+++ b/noncore/apps/checkbook/mainwindow.cpp
@@ -33,17 +33,17 @@
33#include "checkbook.h" 33#include "checkbook.h"
34#include "listedit.h" 34#include "listedit.h"
35 35
36#include <qpe/config.h> 36#include <qpe/config.h>
37#include <qpe/global.h> 37#include <qpe/global.h>
38#include <qpe/qpeapplication.h> 38#include <qpe/qpeapplication.h>
39#include <qmenubar.h>
40#include <qpe/qpemessagebox.h> 39#include <qpe/qpemessagebox.h>
41#include <qpe/qpetoolbar.h> 40#include <qpe/qpetoolbar.h>
42#include <qpe/resource.h> 41#include <qpe/resource.h>
43 42
43#include <qmenubar.h>
44#include <qaction.h> 44#include <qaction.h>
45#include <qcheckbox.h> 45#include <qcheckbox.h>
46#include <qdir.h> 46#include <qdir.h>
47#include <qlineedit.h> 47#include <qlineedit.h>
48#include <qwhatsthis.h> 48#include <qwhatsthis.h>
49 49
@@ -211,14 +211,13 @@ void MainWindow::buildFilename( const QString &name )
211 211
212void MainWindow::slotNew() 212void MainWindow::slotNew()
213{ 213{
214 CBInfo *cb = new CBInfo(); 214 CBInfo *cb = new CBInfo();
215 215
216 Checkbook *currcb = new Checkbook( this, cb, &_cfg ); 216 Checkbook *currcb = new Checkbook( this, cb, &_cfg );
217 currcb->showMaximized(); 217 if ( QPEApplication::execDialog( currcb ) == QDialog::Accepted )
218 if ( currcb->exec() == QDialog::Accepted )
219 { 218 {
220 // Save new checkbook 219 // Save new checkbook
221 buildFilename( cb->name() ); 220 buildFilename( cb->name() );
222 _cfg.setLastBook( cb->name() ); 221 _cfg.setLastBook( cb->name() );
223 cb->setFilename( tempFilename ); 222 cb->setFilename( tempFilename );
224 cb->write(); 223 cb->write();
@@ -269,14 +268,13 @@ void MainWindow::openBook(QListViewItem *curritem)
269 } 268 }
270 delete pw; 269 delete pw;
271 } 270 }
272 271
273 _cfg.setLastBook( currname ); 272 _cfg.setLastBook( currname );
274 Checkbook *currcb = new Checkbook( this, cb, &_cfg ); 273 Checkbook *currcb = new Checkbook( this, cb, &_cfg );
275 currcb->showMaximized(); 274 if ( QPEApplication::execDialog( currcb ) == QDialog::Accepted )
276 if ( currcb->exec() == QDialog::Accepted )
277 { 275 {
278 QString newname = cb->name(); 276 QString newname = cb->name();
279 if ( currname != newname ) 277 if ( currname != newname )
280 { 278 {
281 // Update name if changed 279 // Update name if changed
282 if( curritem ) { 280 if( curritem ) {
@@ -342,14 +340,13 @@ void MainWindow::slotDelete()
342} 340}
343 341
344// --- slotConfigure ---------------------------------------------------------- 342// --- slotConfigure ----------------------------------------------------------
345void MainWindow::slotConfigure() 343void MainWindow::slotConfigure()
346{ 344{
347 Configuration *cfgdlg = new Configuration( this, _cfg ); 345 Configuration *cfgdlg = new Configuration( this, _cfg );
348 cfgdlg->showMaximized(); 346 if ( QPEApplication::execDialog( cfgdlg ) == QDialog::Accepted )
349 if ( cfgdlg->exec() == QDialog::Accepted )
350 { 347 {
351 // read data from config dialog & save it 348 // read data from config dialog & save it
352 cfgdlg->saveConfig( _cfg ); 349 cfgdlg->saveConfig( _cfg );
353 writeConfig(); 350 writeConfig();
354 buildList(); 351 buildList();
355 } 352 }
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp
index 2103df9..b12a395 100644
--- a/noncore/apps/odict/configdlg.cpp
+++ b/noncore/apps/odict/configdlg.cpp
@@ -14,16 +14,17 @@
14 * ( at your option ) any later version. * 14 * ( at your option ) any later version. *
15 * * 15 * *
16 **************************************************************************/ 16 **************************************************************************/
17#include "configdlg.h" 17#include "configdlg.h"
18#include "searchmethoddlg.h" 18#include "searchmethoddlg.h"
19 19
20#include <qdialog.h> 20#include <qpe/qpeapplication.h>
21#include <qpe/config.h> 21#include <qpe/config.h>
22#include <qlayout.h>
23 22
23#include <qdialog.h>
24#include <qlayout.h>
24#include <qhbox.h> 25#include <qhbox.h>
25#include <qvbox.h> 26#include <qvbox.h>
26#include <qlabel.h> 27#include <qlabel.h>
27#include <qlistview.h> 28#include <qlistview.h>
28#include <qpushbutton.h> 29#include <qpushbutton.h>
29#include <qlineedit.h> 30#include <qlineedit.h>
@@ -50,13 +51,13 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa
50 connect( delete_button, SIGNAL( clicked() ), this, SLOT( slotDeleteMethod() )); 51 connect( delete_button, SIGNAL( clicked() ), this, SLOT( slotDeleteMethod() ));
51 52
52 vbox_layout_searchtab->addWidget( hbox ); 53 vbox_layout_searchtab->addWidget( hbox );
53 54
54 vbox_layout->addWidget( search_tab ); 55 vbox_layout->addWidget( search_tab );
55 56
56 showMaximized(); 57 QPEApplication::execDialog( this );
57} 58}
58 59
59void ConfigDlg::slotNewMethod() 60void ConfigDlg::slotNewMethod()
60{ 61{
61 SearchMethodDlg dlg( this, "SearchMethodDlg", true ); 62 SearchMethodDlg dlg( this, "SearchMethodDlg", true );
62 if ( dlg.exec() == QDialog::Accepted ) 63 if ( dlg.exec() == QDialog::Accepted )
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp
index 99cd8db..8ed7152 100644
--- a/noncore/apps/odict/searchmethoddlg.cpp
+++ b/noncore/apps/odict/searchmethoddlg.cpp
@@ -13,16 +13,17 @@
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * ( at your option ) any later version. * 14 * ( at your option ) any later version. *
15 * * 15 * *
16 **************************************************************************/ 16 **************************************************************************/
17#include "searchmethoddlg.h" 17#include "searchmethoddlg.h"
18 18
19#include <qdialog.h>
20#include <qpe/config.h> 19#include <qpe/config.h>
21#include <qlayout.h> 20#include <qpe/qpeapplication.h>
22 21
22#include <qdialog.h>
23#include <qlayout.h>
23#include <qhbox.h> 24#include <qhbox.h>
24#include <qvbox.h> 25#include <qvbox.h>
25#include <qlabel.h> 26#include <qlabel.h>
26#include <qpushbutton.h> 27#include <qpushbutton.h>
27#include <qstring.h> 28#include <qstring.h>
28#include <qlineedit.h> 29#include <qlineedit.h>
@@ -63,13 +64,13 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal,
63 grid->addWidget( lang1, 1,0 ); 64 grid->addWidget( lang1, 1,0 );
64 grid->addWidget( trenner, 1,1 ); 65 grid->addWidget( trenner, 1,1 );
65 grid->addWidget( lang2, 1,2 ); 66 grid->addWidget( lang2, 1,2 );
66 67
67 vbox_layout->addWidget( vbox ); 68 vbox_layout->addWidget( vbox );
68 69
69 showMaximized(); 70 QPEApplication::execDialog ( this );
70 71
71 if( !itemname ) 72 if( !itemname )
72 setCaption( tr( "New Searchmethod" ) ); 73 setCaption( tr( "New Searchmethod" ) );
73 else 74 else
74 { 75 {
75 setCaption( tr( "Change Searchmethod" ) ); 76 setCaption( tr( "Change Searchmethod" ) );
diff --git a/noncore/apps/opie-bartender/bartender.cpp b/noncore/apps/opie-bartender/bartender.cpp
index 8c4ee93..cd0a364 100644
--- a/noncore/apps/opie-bartender/bartender.cpp
+++ b/noncore/apps/opie-bartender/bartender.cpp
@@ -166,14 +166,13 @@ void Bartender::fillList() {
166 166
167void Bartender::fileNew() { 167void Bartender::fileNew() {
168 168
169 New_Drink *newDrinks; 169 New_Drink *newDrinks;
170 newDrinks = new New_Drink(this,"New Drink....", TRUE); 170 newDrinks = new New_Drink(this,"New Drink....", TRUE);
171 QString newName, newIng; 171 QString newName, newIng;
172 newDrinks->showMaximized(); 172 QPEApplication::execDialog( newDrinks );
173 newDrinks->exec();
174 newName = newDrinks->LineEdit1->text(); 173 newName = newDrinks->LineEdit1->text();
175 newIng= newDrinks->MultiLineEdit1->text(); 174 newIng= newDrinks->MultiLineEdit1->text();
176 175
177 if(dbFile.isOpen()) 176 if(dbFile.isOpen())
178 dbFile.close(); 177 dbFile.close();
179 if ( !dbFile.open( IO_WriteOnly| IO_Append)) { 178 if ( !dbFile.open( IO_WriteOnly| IO_Append)) {
@@ -223,14 +222,13 @@ void Bartender::showDrink( QListViewItem *item) {
223 showDrinks->MultiLineEdit1->append(s2); 222 showDrinks->MultiLineEdit1->append(s2);
224 } 223 }
225 if( dbFile.atEnd() ) break; 224 if( dbFile.atEnd() ) break;
226 } 225 }
227 } 226 }
228 } 227 }
229 showDrinks->showMaximized(); 228 QPEApplication::execDialog( showDrinks );
230 showDrinks->exec();
231 229
232 if(showDrinks ->result() ==0) { 230 if(showDrinks ->result() ==0) {
233 doEdit(); 231 doEdit();
234 } 232 }
235 delete showDrinks; 233 delete showDrinks;
236} 234}
@@ -314,15 +312,14 @@ void Bartender::showSearchResult(QStringList &searchList) {
314 QString result; 312 QString result;
315 Search_Results *searchDlg; 313 Search_Results *searchDlg;
316 314
317 searchList.sort(); 315 searchList.sort();
318 316
319 searchDlg = new Search_Results(this, "Search Results", TRUE); 317 searchDlg = new Search_Results(this, "Search Results", TRUE);
320 searchDlg->showMaximized();
321 searchDlg->ListBox1->insertStringList( searchList,-1); 318 searchDlg->ListBox1->insertStringList( searchList,-1);
322 searchDlg->exec(); 319 QPEApplication::execDialog( searchDlg );
323 320
324 if( searchDlg->result() == 1 ) { 321 if( searchDlg->result() == 1 ) {
325 result= searchDlg->ListBox1->currentText(); 322 result= searchDlg->ListBox1->currentText();
326 } 323 }
327 QListViewItemIterator it2( DrinkView ); 324 QListViewItemIterator it2( DrinkView );
328 for ( ; it2.current(); ++it2 ) { 325 for ( ; it2.current(); ++it2 ) {
@@ -343,13 +340,13 @@ void Bartender::doEdit() {
343 myDrink= DrinkView->currentItem()->text(0); 340 myDrink= DrinkView->currentItem()->text(0);
344 dbFile.at(0); 341 dbFile.at(0);
345 int foundAt=0; 342 int foundAt=0;
346 New_Drink *newDrinks; 343 New_Drink *newDrinks;
347 newDrinks = new New_Drink(this,"Edit Drink....", TRUE); 344 newDrinks = new New_Drink(this,"Edit Drink....", TRUE);
348 QString newName, newIng; 345 QString newName, newIng;
349 newDrinks->showMaximized(); 346 QPEApplication::showDialog( newDrinks );
350 QTextStream t( &dbFile); 347 QTextStream t( &dbFile);
351 348
352 QString s, s2; 349 QString s, s2;
353 while ( !t.eof()) { 350 while ( !t.eof()) {
354 s = t.readLine(); 351 s = t.readLine();
355 if(s.find( myDrink, 0, TRUE) != -1) { 352 if(s.find( myDrink, 0, TRUE) != -1) {
@@ -398,14 +395,13 @@ void Bartender::clearList() {
398 DrinkView->clear(); 395 DrinkView->clear();
399} 396}
400 397
401void Bartender::doBac() { 398void Bartender::doBac() {
402 BacDialog *bacDlg; 399 BacDialog *bacDlg;
403 bacDlg = new BacDialog(this,"BAC",TRUE); 400 bacDlg = new BacDialog(this,"BAC",TRUE);
404 bacDlg->showMaximized(); 401 QPEApplication::execDialog( bacDlg );
405 bacDlg->exec();
406 delete bacDlg; 402 delete bacDlg;
407} 403}
408 404
409void Bartender::openCurrentDrink() { 405void Bartender::openCurrentDrink() {
410 if(DrinkView->currentItem() == NULL) return; 406 if(DrinkView->currentItem() == NULL) return;
411 showDrink(DrinkView->currentItem()); 407 showDrink(DrinkView->currentItem());
diff --git a/noncore/apps/opie-console/configdialog.cpp b/noncore/apps/opie-console/configdialog.cpp
index b23f4d0..882cd3d 100644
--- a/noncore/apps/opie-console/configdialog.cpp
+++ b/noncore/apps/opie-console/configdialog.cpp
@@ -1,8 +1,10 @@
1#include <qlistview.h>
2 1
2#include <qpe/qpeapplication.h>
3
4#include <qlistview.h>
3 5
4#include "configdialog.h" 6#include "configdialog.h"
5#include "profileeditordialog.h" 7#include "profileeditordialog.h"
6 8
7class ConfigListItem : public QListViewItem { 9class ConfigListItem : public QListViewItem {
8public: 10public:
@@ -70,14 +72,13 @@ void ConfigDialog::slotEdit() {
70 // Load profile 72 // Load profile
71 p = ((ConfigListItem*)lstView->currentItem())->profile(); 73 p = ((ConfigListItem*)lstView->currentItem())->profile();
72 74
73 ProfileEditorDialog dlg(m_fact, p); 75 ProfileEditorDialog dlg(m_fact, p);
74 76
75 dlg.setCaption(tr("Edit Connection Profile")); 77 dlg.setCaption(tr("Edit Connection Profile"));
76 dlg.showMaximized(); 78 int ret = QPEApplication::execDialog( &dlg );
77 int ret = dlg.exec();
78 79
79 if(ret == QDialog::Accepted) 80 if(ret == QDialog::Accepted)
80 { 81 {
81 if(lstView->currentItem()) delete lstView->currentItem(); 82 if(lstView->currentItem()) delete lstView->currentItem();
82 83
83 // use dlg.terminal()! 84 // use dlg.terminal()!
@@ -89,14 +90,13 @@ void ConfigDialog::slotEdit() {
89 90
90 91
91void ConfigDialog::slotAdd() { 92void ConfigDialog::slotAdd() {
92 ProfileEditorDialog dlg(m_fact); 93 ProfileEditorDialog dlg(m_fact);
93 94
94 dlg.setCaption(tr("New Connection")); 95 dlg.setCaption(tr("New Connection"));
95 dlg.showMaximized(); 96 int ret = QPEApplication::execDialog( &dlg );
96 int ret = dlg.exec();
97 97
98 if(ret == QDialog::Accepted) 98 if(ret == QDialog::Accepted)
99 { 99 {
100 // TODO: Move into general profile save part 100 // TODO: Move into general profile save part
101 // assignments 101 // assignments
102 //QString type = dlg.term_type(); 102 //QString type = dlg.term_type();
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 2673335..3fe9040 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -5,12 +5,13 @@
5#include <qtoolbar.h> 5#include <qtoolbar.h>
6#include <qmessagebox.h> 6#include <qmessagebox.h>
7#include <qwhatsthis.h> 7#include <qwhatsthis.h>
8#include <qfileinfo.h> 8#include <qfileinfo.h>
9 9
10#include <qpe/filemanager.h> 10#include <qpe/filemanager.h>
11#include <qpe/qpeapplication.h>
11 12
12#include <opie/ofiledialog.h> 13#include <opie/ofiledialog.h>
13 14
14#include "TEmulation.h" 15#include "TEmulation.h"
15#include "profileeditordialog.h" 16#include "profileeditordialog.h"
16#include "configdialog.h" 17#include "configdialog.h"
@@ -307,15 +308,14 @@ Session* MainWindow::currentSession() {
307QList<Session> MainWindow::sessions() { 308QList<Session> MainWindow::sessions() {
308 return m_sessions; 309 return m_sessions;
309} 310}
310 311
311void MainWindow::slotNew() { 312void MainWindow::slotNew() {
312 ProfileEditorDialog dlg(factory() ); 313 ProfileEditorDialog dlg(factory() );
313 dlg.showMaximized();
314 dlg.setCaption( tr("New Connection") ); 314 dlg.setCaption( tr("New Connection") );
315 int ret = dlg.exec(); 315 int ret = QPEApplication::execDialog( &dlg );
316 316
317 if ( ret == QDialog::Accepted ) { 317 if ( ret == QDialog::Accepted ) {
318 create( dlg.profile() ); 318 create( dlg.profile() );
319 } 319 }
320} 320}
321 321
@@ -422,15 +422,14 @@ void MainWindow::slotQuickLaunch() {
422 } 422 }
423 423
424} 424}
425 425
426void MainWindow::slotConfigure() { 426void MainWindow::slotConfigure() {
427 ConfigDialog conf( manager()->all(), factory() ); 427 ConfigDialog conf( manager()->all(), factory() );
428 conf.showMaximized();
429 428
430 int ret = conf.exec(); 429 int ret = QPEApplication::execDialog( &conf );
431 430
432 if ( QDialog::Accepted == ret ) { 431 if ( QDialog::Accepted == ret ) {
433 manager()->setProfiles( conf.list() ); 432 manager()->setProfiles( conf.list() );
434 manager()->save(); 433 manager()->save();
435 populateProfiles(); 434 populateProfiles();
436 } 435 }
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp
index e552990..3466e3a 100644
--- a/noncore/apps/opie-console/modemconfigwidget.cpp
+++ b/noncore/apps/opie-console/modemconfigwidget.cpp
@@ -1,6 +1,9 @@
1
2#include <qpe/qpeapplication.h>
3
1#include <qlabel.h> 4#include <qlabel.h>
2#include <qlayout.h> 5#include <qlayout.h>
3#include <qcombobox.h> 6#include <qcombobox.h>
4#include <qpushbutton.h> 7#include <qpushbutton.h>
5#include <qhbox.h> 8#include <qhbox.h>
6 9
@@ -234,22 +237,20 @@ void ModemConfigWidget::save( Profile& prof ) {
234void ModemConfigWidget::slotAT() { 237void ModemConfigWidget::slotAT() {
235 // ATConfigDialog conf( this, "ATConfig", true ); 238 // ATConfigDialog conf( this, "ATConfig", true );
236 // josef/Max I know why don't you create the stuff on the stack 239 // josef/Max I know why don't you create the stuff on the stack
237 // but making it a TopLevel Dialog and ignoring 240 // but making it a TopLevel Dialog and ignoring
238 // cancel is not fun either... 241 // cancel is not fun either...
239 // what to do? FIXME!!! -zecke 242 // what to do? FIXME!!! -zecke
240 atConf->showMaximized(); 243 if ( QPEApplication::execDialog( atConf ) != QDialog::Accepted ) {
241 if ( atConf->exec() != QDialog::Accepted ) {
242 // reload old settings 244 // reload old settings
243 } 245 }
244} 246}
245 247
246void ModemConfigWidget::slotDial() { 248void ModemConfigWidget::slotDial() {
247 DialDialog dial( this, "DialConfig", true ); 249 DialDialog dial( this, "DialConfig", true );
248 if(!m_telNumber->text().isEmpty()) { 250 if(!m_telNumber->text().isEmpty()) {
249 dial.setNumber(m_telNumber->text().replace(QRegExp("[\\-\\/\\ \\.\\,]"), "")); 251 dial.setNumber(m_telNumber->text().replace(QRegExp("[\\-\\/\\ \\.\\,]"), ""));
250 } 252 }
251 dial.showMaximized(); 253 if ( QPEApplication::execDialog( &dial ) == QDialog::Accepted ) {
252 if ( dial.exec() == QDialog::Accepted ) {
253 m_telNumber->setText( dial.number() ); 254 m_telNumber->setText( dial.number() );
254 } 255 }
255} 256}
diff --git a/noncore/apps/opie-reader/CloseDialog.cpp b/noncore/apps/opie-reader/CloseDialog.cpp
index 741fa67..d7c2652 100644
--- a/noncore/apps/opie-reader/CloseDialog.cpp
+++ b/noncore/apps/opie-reader/CloseDialog.cpp
@@ -1,9 +1,11 @@
1#include "CloseDialog.h" 1#include "CloseDialog.h"
2#include "qlayout.h" 2#include "qlayout.h"
3 3
4#include <qpe/qpeapplication.h>
5
4CCloseDialog::CCloseDialog(const QString& fname, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true) 6CCloseDialog::CCloseDialog(const QString& fname, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true)
5{ 7{
6 setCaption(tr("Tidy-up")); 8 setCaption(tr("Tidy-up"));
7 QVBoxLayout *tmp = new QVBoxLayout(this); 9 QVBoxLayout *tmp = new QVBoxLayout(this);
8 QVButtonGroup* vb = new QVButtonGroup(tr("Delete"), this); 10 QVButtonGroup* vb = new QVButtonGroup(tr("Delete"), this);
9 tmp->addWidget(vb); 11 tmp->addWidget(vb);
@@ -11,8 +13,9 @@ CCloseDialog::CCloseDialog(const QString& fname, bool fs, QWidget* parent, const
11 file = new QCheckBox(filestring, vb); 13 file = new QCheckBox(filestring, vb);
12 marks = new QCheckBox(tr("Delete Bookmarks"), vb); 14 marks = new QCheckBox(tr("Delete Bookmarks"), vb);
13 config = new QCheckBox(tr("Delete Configuration"), vb); 15 config = new QCheckBox(tr("Delete Configuration"), vb);
14 file->setChecked(false); 16 file->setChecked(false);
15 marks->setChecked(true); 17 marks->setChecked(true);
16 config->setChecked(true); 18 config->setChecked(true);
17 if (fs) showMaximized(); 19 if (fs)
20 QPEApplication::showDialog( this );
18} 21}
diff --git a/noncore/apps/opie-reader/Prefs.cpp b/noncore/apps/opie-reader/Prefs.cpp
index e5320d9..5150ca5 100644
--- a/noncore/apps/opie-reader/Prefs.cpp
+++ b/noncore/apps/opie-reader/Prefs.cpp
@@ -24,12 +24,14 @@
24#include <qpe/menubutton.h> 24#include <qpe/menubutton.h>
25#include <qpe/fontdatabase.h> 25#include <qpe/fontdatabase.h>
26#else 26#else
27#include <qfontdatabase.h> 27#include <qfontdatabase.h>
28#endif 28#endif
29 29
30#include <qpe/qpeapplication.h>
31
30CLayoutPrefs::CLayoutPrefs( QWidget* parent, const char* name, WFlags fl ) 32CLayoutPrefs::CLayoutPrefs( QWidget* parent, const char* name, WFlags fl )
31 : QWidget( parent, name, fl ) 33 : QWidget( parent, name, fl )
32{ 34{
33 QHBoxLayout* hb = new QHBoxLayout(this); 35 QHBoxLayout* hb = new QHBoxLayout(this);
34 QButtonGroup* bg = new QButtonGroup(2, Qt::Horizontal, tr("Text"), this); 36 QButtonGroup* bg = new QButtonGroup(2, Qt::Horizontal, tr("Text"), this);
35 hb->addWidget(bg); 37 hb->addWidget(bg);
@@ -424,13 +426,14 @@ CPrefs::CPrefs(bool fs, QWidget* parent, const char* name) : QDialog(parent, nam
424 td->addTab(inter, tr("Locale")); 426 td->addTab(inter, tr("Locale"));
425 td->addTab(misc, tr("Misc")); 427 td->addTab(misc, tr("Misc"));
426 td->addTab(button, tr("Buttons")); 428 td->addTab(button, tr("Buttons"));
427 QVBoxLayout* v = new QVBoxLayout(this); 429 QVBoxLayout* v = new QVBoxLayout(this);
428 v->addWidget(td); 430 v->addWidget(td);
429 431
430 if (fs) showMaximized(); 432 if (fs)
433 QPEApplication::showDialog( this );
431} 434}
432 435
433 436
434/* 437/*
435 438
436Unicode 439Unicode
diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp
index f10020a..07af597 100644
--- a/noncore/apps/opie-reader/QTReaderApp.cpp
+++ b/noncore/apps/opie-reader/QTReaderApp.cpp
diff --git a/noncore/apps/opie-reader/ToolbarPrefs.cpp b/noncore/apps/opie-reader/ToolbarPrefs.cpp
index 361bf97..d878829 100644
--- a/noncore/apps/opie-reader/ToolbarPrefs.cpp
+++ b/noncore/apps/opie-reader/ToolbarPrefs.cpp
@@ -20,12 +20,13 @@
20#include <qcombobox.h> 20#include <qcombobox.h>
21#include <qbuttongroup.h> 21#include <qbuttongroup.h>
22#include <qlineedit.h> 22#include <qlineedit.h>
23#ifdef USEQPE 23#ifdef USEQPE
24#include <qpe/menubutton.h> 24#include <qpe/menubutton.h>
25#endif 25#endif
26#include <qpe/qpeapplication.h>
26 27
27CBarPrefs::CBarPrefs(const QString& appdir, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true), config( appdir ) 28CBarPrefs::CBarPrefs(const QString& appdir, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true), config( appdir )
28{ 29{
29 setCaption(tr( "Toolbar Settings" ) ); 30 setCaption(tr( "Toolbar Settings" ) );
30 QTabWidget* td = new QTabWidget(this); 31 QTabWidget* td = new QTabWidget(this);
31 misc = new CMiscBarPrefs(this); 32 misc = new CMiscBarPrefs(this);
@@ -40,13 +41,14 @@ CBarPrefs::CBarPrefs(const QString& appdir, bool fs, QWidget* parent, const char
40 td->addTab(markbar, tr("Marks")); 41 td->addTab(markbar, tr("Marks"));
41 td->addTab(indbar, tr("Indicators")); 42 td->addTab(indbar, tr("Indicators"));
42 td->addTab(misc, tr("Policy")); 43 td->addTab(misc, tr("Policy"));
43 QVBoxLayout* v = new QVBoxLayout(this); 44 QVBoxLayout* v = new QVBoxLayout(this);
44 v->addWidget(td); 45 v->addWidget(td);
45 46
46 if (fs) showMaximized(); 47 if (fs)
48 QPEApplication::showDialog( this );
47} 49}
48 50
49/* 51/*
50CBarPrefs1::CBarPrefs1( Config& _config, QWidget* parent, const char* name, WFlags fl ) 52CBarPrefs1::CBarPrefs1( Config& _config, QWidget* parent, const char* name, WFlags fl )
51 : QWidget( parent, name, fl ), config(_config) 53 : QWidget( parent, name, fl ), config(_config)
52{ 54{
diff --git a/noncore/apps/opie-reader/URLDialog.cpp b/noncore/apps/opie-reader/URLDialog.cpp
index dd4568b..e572c80 100644
--- a/noncore/apps/opie-reader/URLDialog.cpp
+++ b/noncore/apps/opie-reader/URLDialog.cpp
@@ -1,14 +1,17 @@
1#include "URLDialog.h" 1#include "URLDialog.h"
2#include "qlayout.h" 2#include "qlayout.h"
3 3
4#include <qpe/qpeapplication.h>
5
4CURLDialog::CURLDialog(const QString& fname, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true) 6CURLDialog::CURLDialog(const QString& fname, bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true)
5{ 7{
6 setCaption(tr("Save URL")); 8 setCaption(tr("Save URL"));
7 QVBoxLayout *tmp = new QVBoxLayout(this); 9 QVBoxLayout *tmp = new QVBoxLayout(this);
8 QVButtonGroup* vb = new QVButtonGroup(fname, this); 10 QVButtonGroup* vb = new QVButtonGroup(fname, this);
9 tmp->addWidget(vb); 11 tmp->addWidget(vb);
10 m_clipboard = new QCheckBox(tr("Clipboard"), vb); 12 m_clipboard = new QCheckBox(tr("Clipboard"), vb);
11 m_localfile = new QCheckBox(tr("Local file"), vb); 13 m_localfile = new QCheckBox(tr("Local file"), vb);
12 m_globalfile = new QCheckBox(tr("Global file"), vb); 14 m_globalfile = new QCheckBox(tr("Global file"), vb);
13 if (fs) showMaximized(); 15 if (fs)
16 QPEApplication::showDialog( this );
14} 17}
diff --git a/noncore/apps/opie-reader/fileBrowser.cpp b/noncore/apps/opie-reader/fileBrowser.cpp
index 9cd371d..05f2c31 100644
--- a/noncore/apps/opie-reader/fileBrowser.cpp
+++ b/noncore/apps/opie-reader/fileBrowser.cpp
@@ -19,12 +19,14 @@ Extensive modification by Tim Wentford to allow it to work in rotated mode
19#endif 19#endif
20#include <qlayout.h> 20#include <qlayout.h>
21#ifdef _WINDOWS 21#ifdef _WINDOWS
22#include <direct.h> 22#include <direct.h>
23#endif 23#endif
24 24
25#include <qpe/qpeapplication.h>
26
25#include "opie.h" 27#include "opie.h"
26 28
27fileBrowser::fileBrowser( bool allownew, QWidget* parent, const char* name, bool modal, WFlags fl , const QString filter, const QString iPath ) 29fileBrowser::fileBrowser( bool allownew, QWidget* parent, const char* name, bool modal, WFlags fl , const QString filter, const QString iPath )
28 : QDialog( parent, name, true, 30 : QDialog( parent, name, true,
29 fl/* | WStyle_Customize | WStyle_Tool*/), 31 fl/* | WStyle_Customize | WStyle_Tool*/),
30 filterspec(QDir::All) 32 filterspec(QDir::All)
@@ -112,13 +114,14 @@ fileBrowser::fileBrowser( bool allownew, QWidget* parent, const char* name, boo
112 currentDir.setPath(QDir::currentDirPath()); 114 currentDir.setPath(QDir::currentDirPath());
113 chdir(QDir::currentDirPath().latin1()); 115 chdir(QDir::currentDirPath().latin1());
114 } 116 }
115 117
116 populateList(); 118 populateList();
117 119
118 if (modal) showMaximized(); 120 if (modal)
121 QPEApplication::showDialog( this );
119} 122}
120 123
121void fileBrowser::resizeEvent(QResizeEvent* e) 124void fileBrowser::resizeEvent(QResizeEvent* e)
122{ 125{
123 ListView->setColumnWidth(1,(ListView->width())/4); 126 ListView->setColumnWidth(1,(ListView->width())/4);
124 ListView->setColumnWidth(0,ListView->width()-20-ListView->columnWidth(1)); 127 ListView->setColumnWidth(0,ListView->width()-20-ListView->columnWidth(1));
diff --git a/noncore/apps/opie-sheet/mainwindow.cpp b/noncore/apps/opie-sheet/mainwindow.cpp
index bd98aca..3d3c688 100644
--- a/noncore/apps/opie-sheet/mainwindow.cpp
+++ b/noncore/apps/opie-sheet/mainwindow.cpp
@@ -14,16 +14,19 @@
14 14
15#include "mainwindow.h" 15#include "mainwindow.h"
16 16
17#include <qpe/filemanager.h> 17#include <qpe/filemanager.h>
18#include <qpe/qcopenvelope_qws.h> 18#include <qpe/qcopenvelope_qws.h>
19#include <qpe/resource.h> 19#include <qpe/resource.h>
20#include <qpe/qpeapplication.h>
21
20#include <qmessagebox.h> 22#include <qmessagebox.h>
21#include <qfile.h> 23#include <qfile.h>
22#include <qtranslator.h> 24#include <qtranslator.h>
23#include <qradiobutton.h> 25#include <qradiobutton.h>
26
24#include "cellformat.h" 27#include "cellformat.h"
25#include "numberdlg.h" 28#include "numberdlg.h"
26#include "textdlg.h" 29#include "textdlg.h"
27#include "sortdlg.h" 30#include "sortdlg.h"
28#include "finddlg.h" 31#include "finddlg.h"
29 32
@@ -744,13 +747,13 @@ void MainWindow::addFlyAction(const QString &text, const QString &menuText, cons
744 action->addTo(w); 747 action->addTo(w);
745} 748}
746 749
747void MainWindow::slotFormatCells() 750void MainWindow::slotFormatCells()
748{ 751{
749 CellFormat dialogCellFormat(this); 752 CellFormat dialogCellFormat(this);
750 dialogCellFormat.showMaximized(); 753 QPEApplication::showDialog( &dialogCellFormat );
751 dialogCellFormat.exec(sheet); 754 dialogCellFormat.exec(sheet);
752} 755}
753 756
754void MainWindow::slotEditPaste() 757void MainWindow::slotEditPaste()
755{ 758{
756 sheet->editPaste(); 759 sheet->editPaste();
@@ -964,13 +967,13 @@ void MainWindow::slotSheetRemove()
964 } 967 }
965} 968}
966 969
967void MainWindow::slotDataSort() 970void MainWindow::slotDataSort()
968{ 971{
969 SortDialog dialogSort(this); 972 SortDialog dialogSort(this);
970 dialogSort.showMaximized(); 973 QPEApplication::showDialog( &dialogSort );
971 dialogSort.exec(sheet); 974 dialogSort.exec(sheet);
972} 975}
973 976
974void MainWindow::slotDocModified() 977void MainWindow::slotDocModified()
975{ 978{
976 documentModified=TRUE; 979 documentModified=TRUE;
@@ -1000,9 +1003,9 @@ void MainWindow::slotInsertCells()
1000 } 1003 }
1001} 1004}
1002 1005
1003void MainWindow::slotDataFindReplace() 1006void MainWindow::slotDataFindReplace()
1004{ 1007{
1005 FindDialog dialogFind(this); 1008 FindDialog dialogFind(this);
1006 dialogFind.showMaximized(); 1009 QPEApplication::showDialog( &dialogFind );
1007 dialogFind.exec(sheet); 1010 dialogFind.exec(sheet);
1008} 1011}
diff --git a/noncore/apps/tableviewer/ui/tveditview.cpp b/noncore/apps/tableviewer/ui/tveditview.cpp
index 23e2b42..20a24c8 100644
--- a/noncore/apps/tableviewer/ui/tveditview.cpp
+++ b/noncore/apps/tableviewer/ui/tveditview.cpp
@@ -37,12 +37,14 @@
37#include <qcheckbox.h> 37#include <qcheckbox.h>
38#include <qlist.h> 38#include <qlist.h>
39#include <qlabel.h> 39#include <qlabel.h>
40#include <qscrollview.h> 40#include <qscrollview.h>
41#include <qsignalmapper.h> 41#include <qsignalmapper.h>
42 42
43#include <qpe/qpeapplication.h>
44
43TVEditView::TVEditView(TableState *s, DataElem *d, QWidget* parent, 45TVEditView::TVEditView(TableState *s, DataElem *d, QWidget* parent,
44 const char *name, WFlags fl ) : QDialog(parent, name, true, fl) 46 const char *name, WFlags fl ) : QDialog(parent, name, true, fl)
45{ 47{
46 if (!name) 48 if (!name)
47 setName("TVEditView"); 49 setName("TVEditView");
48 50
@@ -61,13 +63,13 @@ TVEditView::TVEditView(TableState *s, DataElem *d, QWidget* parent,
61 sv->addChild(editDisplay); 63 sv->addChild(editDisplay);
62 64
63 connect(toggles, SIGNAL(mapped(int)), this, SLOT(toggleEnabled(int))); 65 connect(toggles, SIGNAL(mapped(int)), this, SLOT(toggleEnabled(int)));
64 66
65 setData(s, d); 67 setData(s, d);
66#ifdef Q_WS_QWS 68#ifdef Q_WS_QWS
67 showMaximized(); 69 QPEApplication::showDialog( this );
68#endif 70#endif
69} 71}
70 72
71TVEditView::~TVEditView() 73TVEditView::~TVEditView()
72{ 74{
73} 75}
diff --git a/noncore/apps/tableviewer/ui/tvfilterview.cpp b/noncore/apps/tableviewer/ui/tvfilterview.cpp
index 0182127..b03e846 100644
--- a/noncore/apps/tableviewer/ui/tvfilterview.cpp
+++ b/noncore/apps/tableviewer/ui/tvfilterview.cpp
@@ -23,12 +23,14 @@
23#include <qlistview.h> 23#include <qlistview.h>
24#include <qlayout.h> 24#include <qlayout.h>
25#include <qheader.h> 25#include <qheader.h>
26#include <qpushbutton.h> 26#include <qpushbutton.h>
27#include <qlabel.h> 27#include <qlabel.h>
28 28
29#include <qpe/qpeapplication.h>
30
29TVFilterView::TVFilterView(TableState *t, QWidget* parent, 31TVFilterView::TVFilterView(TableState *t, QWidget* parent,
30 const char *name, WFlags fl ) : QDialog(parent, name, TRUE, fl) 32 const char *name, WFlags fl ) : QDialog(parent, name, TRUE, fl)
31{ 33{
32 if ( !name ) 34 if ( !name )
33 setName( "Filter View" ); 35 setName( "Filter View" );
34 36
@@ -92,13 +94,13 @@ TVFilterView::TVFilterView(TableState *t, QWidget* parent,
92 ts = t; 94 ts = t;
93 current = 0; 95 current = 0;
94 terms.setAutoDelete(true); 96 terms.setAutoDelete(true);
95 do_filter = false; 97 do_filter = false;
96 98
97#ifdef Q_WS_QWS 99#ifdef Q_WS_QWS
98 showMaximized(); 100 QPEApplication::showDialog( this );
99#endif 101#endif
100} 102}
101 103
102/*! 104/*!
103 Destroys the TVFilterView widget 105 Destroys the TVFilterView widget
104*/ 106*/
diff --git a/noncore/apps/tableviewer/ui/tvkeyedit.cpp b/noncore/apps/tableviewer/ui/tvkeyedit.cpp
index 4849e87..c22ecd3 100644
--- a/noncore/apps/tableviewer/ui/tvkeyedit.cpp
+++ b/noncore/apps/tableviewer/ui/tvkeyedit.cpp
@@ -23,12 +23,14 @@
23#include <qcombobox.h> 23#include <qcombobox.h>
24#include <qlistview.h> 24#include <qlistview.h>
25#include <qmessagebox.h> 25#include <qmessagebox.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28 28
29#include <qpe/qpeapplication.h>
30
29/* QList view item... ?? that can store and update the values that I will 31/* QList view item... ?? that can store and update the values that I will
30 * be changing */ 32 * be changing */
31 33
32class TVKEListViewItem : public QListViewItem 34class TVKEListViewItem : public QListViewItem
33{ 35{
34public: 36public:
@@ -132,13 +134,13 @@ TVKeyEdit::TVKeyEdit(TableState *t, QWidget* parent, const char *name,
132 keyNameEdit->setEnabled(FALSE); 134 keyNameEdit->setEnabled(FALSE);
133 keyTypeEdit->setEnabled(FALSE); 135 keyTypeEdit->setEnabled(FALSE);
134 } 136 }
135 137
136 display->setSorting(0); 138 display->setSorting(0);
137#ifdef Q_WS_QWS 139#ifdef Q_WS_QWS
138 showMaximized(); 140 QPEApplication::showDialog( this );
139#endif 141#endif
140} 142}
141 143
142/*! 144/*!
143 Destroys the TVKeyEdit widget 145 Destroys the TVKeyEdit widget
144*/ 146*/
diff --git a/noncore/apps/tinykate/libkate/view/kateview.cpp b/noncore/apps/tinykate/libkate/view/kateview.cpp
index af3b30d..794fbdb 100644
--- a/noncore/apps/tinykate/libkate/view/kateview.cpp
+++ b/noncore/apps/tinykate/libkate/view/kateview.cpp
@@ -81,12 +81,13 @@
81#include <kfiledialog.h> 81#include <kfiledialog.h>
82#include <kiconloader.h> 82#include <kiconloader.h>
83#include "../document/katetextline.h" 83#include "../document/katetextline.h"
84#include "kateviewdialog.h" 84#include "kateviewdialog.h"
85#include "kateundohistory.h" 85#include "kateundohistory.h"
86#include <qlayout.h> 86#include <qlayout.h>
87#include <qpe/qpeapplication.h>
87 88
88KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc) : QWidget(view) 89KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc) : QWidget(view)
89{ 90{
90 waitForPreHighlight=-1; 91 waitForPreHighlight=-1;
91 myView = view; 92 myView = view;
92 myDoc = doc; 93 myDoc = doc;
@@ -2324,14 +2325,13 @@ void KateView::configDialog()
2324 hlManager->getHlDataList(hlDataList); 2325 hlManager->getHlDataList(hlDataList);
2325 2326
2326 page=kd->addPage(i18n("Highlighting")); 2327 page=kd->addPage(i18n("Highlighting"));
2327 (new QVBoxLayout(page))->setAutoAdd(true); 2328 (new QVBoxLayout(page))->setAutoAdd(true);
2328 2329
2329 hlPage = new HighlightDialogPage(hlManager, &defaultStyleList, &hlDataList, 0, page); 2330 hlPage = new HighlightDialogPage(hlManager, &defaultStyleList, &hlDataList, 0, page);
2330 kd->showMaximized(); 2331 if ( QPEApplication::execDialog( kd )) {
2331 if (kd->exec()) {
2332 // color options 2332 // color options
2333 colorConfig->getColors(colors); 2333 colorConfig->getColors(colors);
2334 myDoc->setFont (fontConfig->getFont()); 2334 myDoc->setFont (fontConfig->getFont());
2335 2335
2336 applyColors(); 2336 applyColors();
2337 // indent options 2337 // indent options
diff --git a/noncore/apps/zsafe/scqtfileedit.cpp b/noncore/apps/zsafe/scqtfileedit.cpp
index effd86b..7a3d906 100644
--- a/noncore/apps/zsafe/scqtfileedit.cpp
+++ b/noncore/apps/zsafe/scqtfileedit.cpp
@@ -25,12 +25,14 @@
25#include "qlistview.h" 25#include "qlistview.h"
26#include "qlineedit.h" 26#include "qlineedit.h"
27#include "qtoolbutton.h" 27#include "qtoolbutton.h"
28 28
29#include "scqtfileedit.h" 29#include "scqtfileedit.h"
30 30
31#include <qpe/qpeapplication.h>
32
31// #define DEBUGFILEEDIT 33// #define DEBUGFILEEDIT
32 34
33/* XPM */ 35/* XPM */
34static const char* const file_xpm[]={ 36static const char* const file_xpm[]={
35 "16 16 5 1", 37 "16 16 5 1",
36 ". c #7f7f7f", 38 ". c #7f7f7f",
@@ -155,13 +157,13 @@ ScQtFileEditDlg::ScQtFileEditDlg( QWidget *parent, const char *name,
155 fileIcon = new QPixmap( (const char **)file_xpm); 157 fileIcon = new QPixmap( (const char **)file_xpm);
156 dirIcon = new QPixmap( (const char **)closed_xpm); 158 dirIcon = new QPixmap( (const char **)closed_xpm);
157 linkIcon = new QPixmap( (const char **)link_file_xpm); 159 linkIcon = new QPixmap( (const char **)link_file_xpm);
158 cdToParentIcon = new QPixmap( (const char **)cdtoparent_xpm); 160 cdToParentIcon = new QPixmap( (const char **)cdtoparent_xpm);
159 161
160#ifdef QWS 162#ifdef QWS
161 showMaximized(); 163 QPEApplication::execDialog( this );
162#endif 164#endif
163 165
164 mkdirflag = false; 166 mkdirflag = false;
165 MkDirButton->setEnabled( false ); 167 MkDirButton->setEnabled( false );
166 168
167 initDirCombo( bpath ); 169 initDirCombo( bpath );
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp
index ee1da77..bdd2aed 100644
--- a/noncore/apps/zsafe/zsafe.cpp
+++ b/noncore/apps/zsafe/zsafe.cpp
@@ -772,20 +772,14 @@ void ZSafe::editPwd()
772 QString comment = selectedItem->text (3); 772 QString comment = selectedItem->text (3);
773 comment.replace (QRegExp("<br>"), "\n"); 773 comment.replace (QRegExp("<br>"), "\n");
774 dialog->Field5->setText(selectedItem->text (4)); 774 dialog->Field5->setText(selectedItem->text (4));
775 dialog->Field6->setText(selectedItem->text (5)); 775 dialog->Field6->setText(selectedItem->text (5));
776 dialog->CommentField->insertLine(comment); 776 dialog->CommentField->insertLine(comment);
777 dialog->CommentField->setCursorPosition(0,0); 777 dialog->CommentField->setCursorPosition(0,0);
778#ifdef DESKTOP 778
779#ifndef WIN32 779 DialogCode result = (DialogCode) QPEApplication::execDialog( dialog );
780 dialog->show();
781#endif
782#else
783 dialog->showMaximized();
784#endif
785 DialogCode result = (DialogCode) dialog->exec();
786 780
787#ifdef DESKTOP 781#ifdef DESKTOP
788 result = Accepted; 782 result = Accepted;
789#endif 783#endif
790 if (result == Accepted) 784 if (result == Accepted)
791 { 785 {
@@ -837,20 +831,14 @@ void ZSafe::newPwd()
837 dialog->Username->setText(getFieldLabel (selectedItem, "2", tr("Username"))); 831 dialog->Username->setText(getFieldLabel (selectedItem, "2", tr("Username")));
838 dialog->Password->setText(getFieldLabel (selectedItem, "3", tr("Password"))); 832 dialog->Password->setText(getFieldLabel (selectedItem, "3", tr("Password")));
839 dialog->Comment->setText(getFieldLabel (selectedItem, "4", tr("Comment"))); 833 dialog->Comment->setText(getFieldLabel (selectedItem, "4", tr("Comment")));
840 dialog->Field5Label->setText(getFieldLabel (selectedItem,"5", tr("Field 4"))); 834 dialog->Field5Label->setText(getFieldLabel (selectedItem,"5", tr("Field 4")));
841 dialog->Field6Label->setText(getFieldLabel (selectedItem,"6", tr("Field 5"))); 835 dialog->Field6Label->setText(getFieldLabel (selectedItem,"6", tr("Field 5")));
842retype: 836retype:
843#ifdef DESKTOP 837
844#ifndef WIN32 838 DialogCode result = (DialogCode) QPEApplication::execDialog( dialog );
845 dialog->show();
846#endif
847#else
848 dialog->showMaximized();
849#endif
850 DialogCode result = (DialogCode) dialog->exec();
851#ifdef DESKTOP 839#ifdef DESKTOP
852 result = Accepted; 840 result = Accepted;
853#endif 841#endif
854 842
855 if (result == Accepted) 843 if (result == Accepted)
856 { 844 {
@@ -1185,18 +1173,13 @@ void ZSafe::showInfo( QListViewItem *_item)
1185 } 1173 }
1186 1174
1187 text += "</body></html>"; 1175 text += "</body></html>";
1188 1176
1189 infoForm->InfoText->setText(text); 1177 infoForm->InfoText->setText(text);
1190 infoForm->hide(); 1178 infoForm->hide();
1191#ifdef DESKTOP 1179 QPEApplication::showDialog( infoForm );
1192 infoForm->show();
1193#else
1194 infoForm->showMaximized();
1195#endif
1196
1197 } 1180 }
1198} 1181}
1199 1182
1200void ZSafe::listViewSelected( QListViewItem *_item) 1183void ZSafe::listViewSelected( QListViewItem *_item)
1201{ 1184{
1202 if (!_item) 1185 if (!_item)
diff --git a/noncore/comm/keypebble/kvnc.cpp b/noncore/comm/keypebble/kvnc.cpp
index 25c8919..2fa8d1f 100644
--- a/noncore/comm/keypebble/kvnc.cpp
+++ b/noncore/comm/keypebble/kvnc.cpp
@@ -124,14 +124,13 @@ KVNC::~KVNC()
124 124
125void KVNC::newConnection() 125void KVNC::newConnection()
126{ 126{
127 curServer=new KRFBServer; 127 curServer=new KRFBServer;
128 128
129 KVNCConnDlg dlg( curServer,this); 129 KVNCConnDlg dlg( curServer,this);
130 dlg.showMaximized(); 130 if ( QPEApplication::execDialog( &dlg )) {
131 if (dlg.exec()) {
132 if (!curServer->name.isEmpty()) 131 if (!curServer->name.isEmpty())
133 bookmarkSelector->addBookmark(curServer); 132 bookmarkSelector->addBookmark(curServer);
134 canvas->openConnection(*curServer); 133 canvas->openConnection(*curServer);
135 } else 134 } else
136 curServer=0; 135 curServer=0;
137} 136}
@@ -139,15 +138,13 @@ void KVNC::newConnection()
139void KVNC::openConnection( QString name) 138void KVNC::openConnection( QString name)
140{ 139{
141 curServer=bookmarkSelector->getServer(name); 140 curServer=bookmarkSelector->getServer(name);
142 141
143 if (curServer) { 142 if (curServer) {
144 KVNCConnDlg dlg( curServer,this); 143 KVNCConnDlg dlg( curServer,this);
145 dlg.showMaximized(); 144 if ( QPEApplication::execDialog( &dlg ) ) {
146
147 if ( dlg.exec() ) {
148 canvas->openConnection(*curServer); 145 canvas->openConnection(*curServer);
149 bookmarkSelector->writeBookmarks(); 146 bookmarkSelector->writeBookmarks();
150 } else 147 } else
151 curServer=0; 148 curServer=0;
152 } 149 }
153} 150}