summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/main.cpp
authorllornkcor <llornkcor>2004-07-21 20:44:12 (UTC)
committer llornkcor <llornkcor>2004-07-21 20:44:12 (UTC)
commit51d06a743940249e34a2bcc970b825bad99819d3 (patch) (side-by-side diff)
tree4c8075a3e3b46146da7630998ee52265e83c0939 /noncore/apps/zsafe/main.cpp
parent8d5f46620d92ff1fb9477ada28b6a1aafeed6d16 (diff)
downloadopie-51d06a743940249e34a2bcc970b825bad99819d3.zip
opie-51d06a743940249e34a2bcc970b825bad99819d3.tar.gz
opie-51d06a743940249e34a2bcc970b825bad99819d3.tar.bz2
fixes
Diffstat (limited to 'noncore/apps/zsafe/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/main.cpp29
1 files changed, 17 insertions, 12 deletions
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp
index c187520..2707730 100644
--- a/noncore/apps/zsafe/main.cpp
+++ b/noncore/apps/zsafe/main.cpp
@@ -51,5 +51,5 @@ int main( int argc, char ** argv )
{
-#ifndef WIN32
+#ifndef Q_WS_WIN
// install signal handler
- signal (SIGSTOP, suspend);
+// signal (SIGSTOP, suspend);
#endif
@@ -66,3 +66,3 @@ int main( int argc, char ** argv )
{
-#ifndef WIN32
+#ifndef Q_WS_WIN
DeskW = atoi(argv[1]);
@@ -86,4 +86,5 @@ int main( int argc, char ** argv )
+#ifndef NO_OPIE
owarn << "Width: " << DeskW << " Height: " << DeskH << oendl;
-
+#endif
#ifdef JPATCH_HDE
@@ -95,3 +96,5 @@ int main( int argc, char ** argv )
DeskH += 25;
+#ifndef NO_OPIE
owarn << "Changed width: " << DeskW << " Height: " << DeskH << oendl;
+#endif
}
@@ -101,14 +104,16 @@ int main( int argc, char ** argv )
- ZSafe mw;
- zs = &mw;
-
-#ifndef WIN32
- signal (SIGCONT, resume);
+ ZSafe *mw = new ZSafe( 0, 0, QWidget::WDestructiveClose );
+// ZSafe mw;
+// zs = &mw;
+ zs = mw;
+
+#ifndef Q_WS_WIN
+// signal (SIGCONT, resume);
#endif
#ifdef DESKTOP
- a.setMainWidget(&mw);
- mw.show();
+ a.setMainWidget(mw);
+ mw->show();
#else
// a.showMainWidget( &mw );
- a.showMainDocumentWidget( &mw );
+ a.showMainDocumentWidget( mw );
#endif