summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/zsafe/zsafe.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp
index 43565ee..ee1da77 100644
--- a/noncore/apps/zsafe/zsafe.cpp
+++ b/noncore/apps/zsafe/zsafe.cpp
@@ -389,3 +389,4 @@ static const char* const general_data[] = {
389ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl ) 389ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
390 : QDialog( parent, name, modal, fl ) 390 : QDialog( parent, name, modal, fl ),
391 Edit(0l), Delete(0l), Find(0l), New(0l), ListView(0l)
391{ 392{
@@ -399,3 +400,8 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
399 // set the icon path 400 // set the icon path
401#ifdef NO_OPIE
400 QString qpedir ((const char *)getenv("QPEDIR")); 402 QString qpedir ((const char *)getenv("QPEDIR"));
403#else
404 QString qpedir ((const char *)getenv("OPIEDIR"));
405#endif
406
401#ifdef DESKTOP 407#ifdef DESKTOP
@@ -511,7 +517,3 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
511 } 517 }
512// #ifndef WIN32
513 // QString d2("Documents/application/zsafe");
514// #else
515 QString d2(QDir::homeDirPath() + "/Documents/application/zsafe"); 518 QString d2(QDir::homeDirPath() + "/Documents/application/zsafe");
516// #endif
517 QDir pd2(d2); 519 QDir pd2(d2);
@@ -519,3 +521,3 @@ ZSafe::ZSafe( QWidget* parent, const char* name, bool modal, WFlags fl )
519 { 521 {
520 QDir pd2("Documents/application"); 522 QDir pd2(QDir::homeDirPath() + "Documents/application");
521 if (!pd2.mkdir("zsafe", FALSE)) 523 if (!pd2.mkdir("zsafe", FALSE))
@@ -3649,8 +3651,10 @@ void ZSafe::resizeEvent ( QResizeEvent * )
3649#endif 3651#endif
3650 qWarning( QString("Width : %1").arg(DeskW), 2000 );
3651 qWarning( QString("Height: %1").arg(DeskH), 2000 );
3652 3652
3653 if (New)
3653 New->setGeometry ( QRect( DeskW-84, 2, 20, 20 ) ); 3654 New->setGeometry ( QRect( DeskW-84, 2, 20, 20 ) );
3655 if (Edit)
3654 Edit->setGeometry ( QRect( DeskW-64, 2, 20, 20 ) ); 3656 Edit->setGeometry ( QRect( DeskW-64, 2, 20, 20 ) );
3657 if (Delete)
3655 Delete->setGeometry( QRect( DeskW-44, 2, 20, 20 ) ); 3658 Delete->setGeometry( QRect( DeskW-44, 2, 20, 20 ) );
3659 if (Find)
3656 Find->setGeometry ( QRect( DeskW-24, 2, 20, 20 ) ); 3660 Find->setGeometry ( QRect( DeskW-24, 2, 20, 20 ) );