author | llornkcor <llornkcor> | 2004-04-25 12:15:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-04-25 12:15:06 (UTC) |
commit | 6182b509bdb16dd4d1e95b9a570219ef6c15ed21 (patch) (unidiff) | |
tree | 681bcfd272bd1d8d4873ee94acd56d42968997c3 /library | |
parent | 84466242f91283378aec1b1ecda0bb27eb4f6097 (diff) | |
download | opie-6182b509bdb16dd4d1e95b9a570219ef6c15ed21.zip opie-6182b509bdb16dd4d1e95b9a570219ef6c15ed21.tar.gz opie-6182b509bdb16dd4d1e95b9a570219ef6c15ed21.tar.bz2 |
fix bigfotos
-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 86dbe85..d0e9613 100644 --- a/library/qpeapplication.cpp +++ b/library/qpeapplication.cpp | |||
@@ -175,6 +175,16 @@ public: | |||
175 | 175 | ||
176 | static void show_mx(QWidget* mw, bool nomaximize, QString &strName/* = QString::null */) | 176 | static void show_mx(QWidget* mw, bool nomaximize, QString &strName/* = QString::null */) |
177 | { | 177 | { |
178 | // ugly hack, remove that later after finding a sane solution | ||
179 | // Addendum: Only Sharp currently has models with high resolution but (physically) small displays, | ||
180 | // so this is only useful if QT_QWS_SIMPAD is NOT defined. E.g. SIMpad has 800x600 but has | ||
181 | // a (physically) large enough display to use the small icons | ||
182 | #if defined(OPIE_HIGH_RES_SMALL_PHY) | ||
183 | if ( QPEApplication::desktop() ->width() >= 600 && ( mw->inherits("QMainWindow") || mw->isA("QMainWindow") ) ) { | ||
184 | ( ( QMainWindow* ) mw )->setUsesBigPixmaps( true ); | ||
185 | } | ||
186 | #endif | ||
187 | |||
178 | QPoint p; | 188 | QPoint p; |
179 | QSize s; | 189 | QSize s; |
180 | bool max; | 190 | bool max; |