summaryrefslogtreecommitdiff
authorzecke <zecke>2005-04-16 22:00:51 (UTC)
committer zecke <zecke>2005-04-16 22:00:51 (UTC)
commit632d3e87a7e2cf6efecb676987d622e937ecafb8 (patch) (side-by-side diff)
tree6689c8549e494841108217daa21913ec27565720
parent790b371e6c7ed9da76eafb8a5b2e5d5458b320d8 (diff)
downloadopie-632d3e87a7e2cf6efecb676987d622e937ecafb8.zip
opie-632d3e87a7e2cf6efecb676987d622e937ecafb8.tar.gz
opie-632d3e87a7e2cf6efecb676987d622e937ecafb8.tar.bz2
Opie/X11:
Minor updates to build a recent Opie version for usage with the X Window System
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.cpp26
-rw-r--r--x11/libqpe-x11/qpe/qpeapplication.h8
-rw-r--r--x11/libqpe-x11/qt/qwindowsystem_qws.h3
3 files changed, 26 insertions, 11 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp
index 73e7ce4..c49f3ad 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.cpp
+++ b/x11/libqpe-x11/qpe/qpeapplication.cpp
@@ -417,3 +417,3 @@ int QPEApplication::defaultRotation() {
}
-void QPEApplication::setDefaultRotation(int r ) {
+void QPEApplication::setDefaultRotation(int) {
@@ -451,2 +451,10 @@ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool m) {
void QPEApplication::showDialog( QDialog* d, bool nomax ) {
+ showWidget( d, nomax );
+}
+int QPEApplication::execDialog( QDialog* d, bool nomax) {
+ showDialog(d,nomax);
+ return d->exec();
+}
+
+void QPEApplication::showWidget( QWidget* d, bool nomax ) {
QSize sh = d->sizeHint();
@@ -458,12 +466,9 @@ void QPEApplication::showDialog( QDialog* d, bool nomax ) {
{
- d->showMaximized();
+ d->showMaximized();
} else {
- d->resize(w,h);
- d->show();
+ d->resize(w,h);
+ d->show();
}
}
-int QPEApplication::execDialog( QDialog* d, bool nomax) {
- showDialog(d,nomax);
- return d->exec();
-}
+
void QPEApplication::setKeepRunning() {
@@ -759,2 +764,3 @@ int QPEApplication::x11ClientMessage(QWidget* w, XEvent* event, bool b ) {
#if defined(OPIE_NEW_MALLOC)
+#define likely(x) x
@@ -777,2 +783,3 @@ void operator delete[]( void* p )
{
+ if ( likely(p) )
free( p );
@@ -782,2 +789,3 @@ void operator delete[]( void* p, size_t /*size*/ )
{
+ if ( likely(p) )
free( p );
@@ -787,2 +795,3 @@ void operator delete( void* p )
{
+ if ( likely(p) )
free( p );
@@ -792,2 +801,3 @@ void operator delete( void* p, size_t /*size*/ )
{
+ if ( likely(p) )
free( p );
diff --git a/x11/libqpe-x11/qpe/qpeapplication.h b/x11/libqpe-x11/qpe/qpeapplication.h
index b1fc074..5521998 100644
--- a/x11/libqpe-x11/qpe/qpeapplication.h
+++ b/x11/libqpe-x11/qpe/qpeapplication.h
@@ -9,4 +9,5 @@
#include <qevent.h>
-
-#include <qpe/timestring.h>
+#include <qtopia/timestring.h>
+#include <unistd.h>
+#include <stdlib.h>
@@ -48,3 +49,4 @@ public:
static void showDialog( QDialog*, bool nomax = FALSE );
- static int execDialog( QDialog*, bool nomax = FALSE );
+ static int execDialog ( QDialog*, bool nomax = FALSE );
+ static void showWidget( QWidget*, bool nomax = FALSE );
diff --git a/x11/libqpe-x11/qt/qwindowsystem_qws.h b/x11/libqpe-x11/qt/qwindowsystem_qws.h
index 88902c8..42470cd 100644
--- a/x11/libqpe-x11/qt/qwindowsystem_qws.h
+++ b/x11/libqpe-x11/qt/qwindowsystem_qws.h
@@ -12,2 +12,5 @@ QWSServer(){}
struct KeyboardFilter {
+ bool filter(int,int,int,bool,bool) {
+ return false;
+ }
};