author | harlekin <harlekin> | 2003-04-19 22:19:11 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-19 22:19:11 (UTC) |
commit | 0374e0e52e9b754ae48ada631cad2b397feabb21 (patch) (side-by-side diff) | |
tree | c4dff4db838838956d7f137b52839a11ddaad0e1 | |
parent | 29c556ffc9b1497cd996ceb46d646b1eaf1288be (diff) | |
download | opie-0374e0e52e9b754ae48ada631cad2b397feabb21.zip opie-0374e0e52e9b754ae48ada631cad2b397feabb21.tar.gz opie-0374e0e52e9b754ae48ada631cad2b397feabb21.tar.bz2 |
big toolbar icons for screenwidths > 600
-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 @@ -47,12 +47,13 @@ #include <qdialog.h> #include <qdragobject.h> #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 #include <qstylefactory.h> #else @@ -143,12 +144,18 @@ public: #endif 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 { #ifdef Q_WS_QWS if ( !nomaximize ) @@ -860,12 +867,14 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e ) if ( m == AlwaysOff ) Global::hideInputMethod(); if ( m == AlwaysOn ) Global::showInputMethod(); } } + + return QApplication::qwsEventFilter( e ); } #endif /*! Destroys the QPEApplication. @@ -1333,12 +1342,13 @@ void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) */ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize ) { if ( mw && argc() == 2 ) Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); + d->show(mw, nomaximize ); } /*! If an application is started via a \link qcop.html QCop\endlink |