summaryrefslogtreecommitdiff
path: root/library
Side-by-side diff
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 0e469ae..28fb13a 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -53,2 +53,3 @@
#include <qwidgetlist.h>
+#include <qpixmapcache.h>
@@ -101,3 +102,3 @@ public:
notbusysent( false ), preloaded( false ), forceshow( false ), nomaximize( false ),
- keep_running( true ), qpe_main_widget( 0 ), qcopQok( false )
+ keep_running( true ), qcopQok( false ), qpe_main_widget( 0 )
@@ -115,4 +116,4 @@ public:
bool nomaximize : 1;
- bool qcopQok : 1;
bool keep_running : 1;
+ bool qcopQok : 1;
@@ -216,2 +217,3 @@ public:
qpe_main_widget = mw;
+ qcopQok = TRUE;
#ifndef QT_NO_COP
@@ -578,2 +580,4 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
{
+ QPixmapCache::setCacheLimit(256); // sensible default for smaller devices.
+
d = new QPEApplicationData;
@@ -1778,2 +1782,5 @@ bool QPEApplication::eventFilter( QObject *o, QEvent *e )
{
+ if ( !o->isWidgetType() )
+ return FALSE;
+
if ( stylusDict && e->type() >= QEvent::MouseButtonPress && e->type() <= QEvent::MouseMove ) {
@@ -1786,3 +1793,4 @@ bool QPEApplication::eventFilter( QObject *o, QEvent *e )
if ( me->button() == LeftButton ) {
- d->presstimer = startTimer(500); // #### pref.
+ if (!d->presstimer )
+ d->presstimer = startTimer(500); // #### pref.
d->presswidget = (QWidget*)o;
@@ -1906,2 +1914,4 @@ int QPEApplication::exec()
d->sendQCopQ();
+ if ( !d->keep_running )
+ processEvents(); // we may have received QCop messages in the meantime.
#endif