summaryrefslogtreecommitdiff
path: root/library
authorar <ar>2005-03-10 16:21:07 (UTC)
committer ar <ar>2005-03-10 16:21:07 (UTC)
commit3bf4809c4f2263f0130472c41aa6c85e46e61db9 (patch) (side-by-side diff)
tree82c34fddb63bb6ca8cbd53709ab2642795241d38 /library
parent95a99e7b75eddc5629e839698b762f594be42b9f (diff)
downloadopie-3bf4809c4f2263f0130472c41aa6c85e46e61db9.zip
opie-3bf4809c4f2263f0130472c41aa6c85e46e61db9.tar.gz
opie-3bf4809c4f2263f0130472c41aa6c85e46e61db9.tar.bz2
- implement nomax.patch from openembedded
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/qpeapplication.cpp8
-rw-r--r--library/widget_showing.cpp4
2 files changed, 9 insertions, 3 deletions
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index 953f9d0..0f3e4a4 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -252,2 +252,3 @@ public:
{
+#ifndef OPIE_NO_WINDOWED
maximized = TRUE;
@@ -273,3 +274,3 @@ public:
}
-
+#endif
return FALSE;
@@ -322,4 +323,4 @@ public:
if( !w )
- return;
-
+ return;
+#ifndef OPIE_NO_WINDOWED
// 350 is the trigger in qwsdefaultdecoration for providing a resize button
@@ -344,2 +345,3 @@ public:
cfg.writeEntry( app, s );
+#endif
}
diff --git a/library/widget_showing.cpp b/library/widget_showing.cpp
index 43ece64..43d19b0 100644
--- a/library/widget_showing.cpp
+++ b/library/widget_showing.cpp
@@ -54,4 +54,8 @@ void QPEApplication::showWidget( QWidget* wg, bool nomax ) {
+#ifndef OPIE_NO_WINDOWED
+ if ( TRUE ) {
+#else
if ( !nomax
&& ( qApp->desktop()->width() <= 320 ) ){
+#endif
wg->showMaximized();