summaryrefslogtreecommitdiff
path: root/library
authorharlekin <harlekin>2003-04-19 22:19:11 (UTC)
committer harlekin <harlekin>2003-04-19 22:19:11 (UTC)
commit0374e0e52e9b754ae48ada631cad2b397feabb21 (patch) (unidiff)
treec4dff4db838838956d7f137b52839a11ddaad0e1 /library
parent29c556ffc9b1497cd996ceb46d646b1eaf1288be (diff)
downloadopie-0374e0e52e9b754ae48ada631cad2b397feabb21.zip
opie-0374e0e52e9b754ae48ada631cad2b397feabb21.tar.gz
opie-0374e0e52e9b754ae48ada631cad2b397feabb21.tar.bz2
big toolbar icons for screenwidths > 600
Diffstat (limited to 'library') (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
@@ -51,4 +51,5 @@
51#include <qtooltip.h> 51#include <qtooltip.h>
52#include <qsignal.h> 52#include <qsignal.h>
53#include <qmainwindow.h>
53#include "qpeapplication.h" 54#include "qpeapplication.h"
54#include "qpestyle.h" 55#include "qpestyle.h"
@@ -147,4 +148,10 @@ public:
147 static void show_mx(QWidget* mw, bool nomaximize) 148 static void show_mx(QWidget* mw, bool nomaximize)
148 { 149 {
150
151 // ugly hack, remove that later after finding a sane solution
152 if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) {
153 ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true );
154 }
155
149 if ( mw->layout() && mw->inherits("QDialog") ) { 156 if ( mw->layout() && mw->inherits("QDialog") ) {
150 QPEApplication::showDialog((QDialog*)mw, nomaximize); 157 QPEApplication::showDialog((QDialog*)mw, nomaximize);
@@ -509,5 +516,5 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
509 d->loadTextCodecs(); 516 d->loadTextCodecs();
510 d->loadImageCodecs(); 517 d->loadImageCodecs();
511 int dw = desktop() ->width(); 518 int dw = desktop() ->width();
512 519
513 if ( dw < 200 ) { 520 if ( dw < 200 ) {
@@ -517,6 +524,6 @@ QPEApplication::QPEApplication( int & argc, char **argv, Type t )
517 } 524 }
518 else if ( dw > 600 ) { 525 else if ( dw > 600 ) {
519 setFont( QFont( "helvetica", 18 ) ); 526 setFont( QFont( "helvetica", 18 ) );
520 AppLnk::setSmallIconSize( 24 ); 527 AppLnk::setSmallIconSize( 24 );
521 AppLnk::setBigIconSize( 48 ); 528 AppLnk::setBigIconSize( 48 );
522 } 529 }
@@ -864,4 +871,6 @@ bool QPEApplication::qwsEventFilter( QWSEvent * e )
864 } 871 }
865 } 872 }
873
874
866 return QApplication::qwsEventFilter( e ); 875 return QApplication::qwsEventFilter( e );
867} 876}
@@ -1318,5 +1327,5 @@ void QPEApplication::pidMessage( const QCString& msg, const QByteArray& data)
1318void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize ) 1327void QPEApplication::showMainWidget( QWidget* mw, bool nomaximize )
1319{ 1328{
1320 d->show(mw, nomaximize ); 1329 d->show(mw, nomaximize );
1321} 1330}
1322 1331
@@ -1337,4 +1346,5 @@ void QPEApplication::showMainDocumentWidget( QWidget* mw, bool nomaximize )
1337 Global::setDocument( mw, QString::fromUtf8(argv()[1]) ); 1346 Global::setDocument( mw, QString::fromUtf8(argv()[1]) );
1338 1347
1348
1339 d->show(mw, nomaximize ); 1349 d->show(mw, nomaximize );
1340} 1350}