-rw-r--r-- | library/qpeapplication.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp index 2ef60d5..7f8299a 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp @@ -49,8 +49,9 @@ #include <qtextcodec.h> #include <qevent.h> #include <qtooltip.h> #include <qsignal.h> +#include <qmainwindow.h> #include "qpeapplication.h" #include "qpestyle.h" #include "styleinterface.h" #if QT_VERSION >= 300 @@ -145,8 +146,14 @@ public: qcopq.clear(); } static void show_mx(QWidget* mw, bool nomaximize) { + + // 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") ) { QPEApplication::showDialog((QDialog*)mw, nomaximize); } else { @@ -862,8 +869,10 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e ) if ( m == AlwaysOn ) Global::showInputMethod(); } } + + return QApplication::qwsEventFilter( e ); } #endif @@ -1335,8 +1344,9 @@ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize ) { if ( mw && argc() == 2 ) Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); + d->show(mw, nomaximize ); } |