summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 2ef60d5..7f8299a 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -52,2 +52,3 @@
#include <qsignal.h>
+#include <qmainwindow.h>
#include "qpeapplication.h"
@@ -148,2 +149,8 @@ public:
{
+
+ // ugly hack, remove that later after finding a sane solution
+ if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) {
+ ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true );
+ }
+
if ( mw->layout() && mw->inherits("QDialog") ) {
@@ -510,3 +517,3 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
d->loadImageCodecs();
- int dw = desktop() ->width();
+ int dw = desktop() ->width();
@@ -518,4 +525,4 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
else if ( dw > 600 ) {
- setFont( QFont( "helvetica", 18 ) );
- AppLnk::setSmallIconSize( 24 );
+ setFont( QFont( "helvetica", 18 ) );
+ AppLnk::setSmallIconSize( 24 );
AppLnk::setBigIconSize( 48 );
@@ -865,2 +872,4 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e )
}
+
+
return QApplication::qwsEventFilter( e );
@@ -1319,3 +1328,3 @@ void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize )
{
- d->show(mw, nomaximize );
+ d->show(mw, nomaximize );
}
@@ -1338,2 +1347,3 @@ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize )
+
d->show(mw, nomaximize );