aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-07-17 16:58:55 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-07-23 19:59:14 -0700
commitd8239786b306ffda6d5d73753d01f0ad3358e1a0 (patch)
treeb6b2aa300fc08f7fa20d545a7255d4a9a748d282 /distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc
parent4b0ca3716e04e4b445fd987e877f07bba6ce06cd (diff)
downloadexternal_qemu-d8239786b306ffda6d5d73753d01f0ad3358e1a0.zip
external_qemu-d8239786b306ffda6d5d73753d01f0ad3358e1a0.tar.gz
external_qemu-d8239786b306ffda6d5d73753d01f0ad3358e1a0.tar.bz2
Delete sdl-1.2.12
Change-Id: Ia96f80df04035ae84be3af468c945f2cec14f99c
Diffstat (limited to 'distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc')
-rw-r--r--distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc47
1 files changed, 0 insertions, 47 deletions
diff --git a/distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc b/distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc
deleted file mode 100644
index 46fd518..0000000
--- a/distrib/sdl-1.2.12/src/main/qtopia/SDL_qtopia_main.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-
-/* Include the SDL main definition header */
-#include "SDL_main.h"
-#include <stdlib.h>
-#include <unistd.h>
-#ifdef main
-#undef main
-#endif
-#ifdef QWS
-#include <qpe/qpeapplication.h>
-#include <qapplication.h>
-#include <qpe/qpeapplication.h>
-#include <stdlib.h>
-
-// Workaround for OPIE to remove taskbar icon. Also fixes
-// some issues in Qtopia where there are left-over qcop files in /tmp/.
-// I'm guessing this will also clean up the taskbar in the Sharp version
-// of Qtopia.
-static inline void cleanupQCop() {
- QString appname(qApp->argv()[0]);
- int slash = appname.findRev("/");
- if(slash != -1) { appname = appname.mid(slash+1); }
- QString cmd = QPEApplication::qpeDir() + "bin/qcop QPE/System 'closing(QString)' '"+appname+"'";
- system(cmd.latin1());
- cmd = "/tmp/qcop-msg-"+appname;
- unlink(cmd.latin1());
-}
-
-static QPEApplication *app;
-#endif
-
-extern int SDL_main(int argc, char *argv[]);
-
-int main(int argc, char *argv[])
-{
-#ifdef QWS
- // This initializes the Qtopia application. It needs to be done here
- // because it parses command line options.
- app = new QPEApplication(argc, argv);
- QWidget dummy;
- app->showMainWidget(&dummy);
- atexit(cleanupQCop);
-#endif
- // Exit here because if return is used, the application
- // doesn't seem to quit correctly.
- exit(SDL_main(argc, argv));
-}