blob: 468038b3776b1f3a696a1323fa5575664318d3a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- opie-x86/core/launcher/server.cpp~nomax
+++ opie-x86/core/launcher/server.cpp
@@ -76,7 +76,7 @@
return 0;
#endif
}
-
+#ifndef OPIE_NO_WINDOWED
#define FACTORY(T) \
static QWidget *new##T( bool maximized ) { \
QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
@@ -90,7 +90,18 @@
w->show(); \
return w; \
}
+#else
+#define FACTORY(T) \
+ static QWidget *new##T( bool maximized ) { \
+ QWidget *w = new T( 0, 0, QWidget::WDestructiveClose | QWidget::WGroupLeader ); \
+ if ( maximized ) { \
+ w->showMaximized(); \
+} \
+ w->show(); \
+ return w; \
+}
+#endif
#ifdef SINGLE_APP
#define APP(a,b,c,d) FACTORY(b)
|