summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/libpreload/libpreload.pro2
-rw-r--r--core/launcher/libpreload/preload.cpp45
2 files changed, 45 insertions, 2 deletions
diff --git a/core/launcher/libpreload/libpreload.pro b/core/launcher/libpreload/libpreload.pro
index 7630d01..ed426da 100644
--- a/core/launcher/libpreload/libpreload.pro
+++ b/core/launcher/libpreload/libpreload.pro
@@ -2,3 +2,3 @@ TEMPLATE = lib
2 2
3CONFIG = release warn_on 3CONFIG = qt release warn_on
4 4
diff --git a/core/launcher/libpreload/preload.cpp b/core/launcher/libpreload/preload.cpp
index cc1baac..345620b 100644
--- a/core/launcher/libpreload/preload.cpp
+++ b/core/launcher/libpreload/preload.cpp
@@ -5,2 +5,3 @@
5 5
6#include <qapplication.h>
6#include <qwsdecoration_qws.h> 7#include <qwsdecoration_qws.h>
@@ -12,5 +13,6 @@
12//class QStyle; 13//class QStyle;
13class QApplication; 14//class QApplication;
14class QFont; 15class QFont;
15//class QWSDecoration; 16//class QWSDecoration;
17class QFontDatabase;
16 18
@@ -25,2 +27,4 @@ typedef void ( *qapp_setdeco_t ) ( QWSDecoration * );
25typedef void ( *qapp_setfont_t ) ( const QFont &, bool, const char * ); 27typedef void ( *qapp_setfont_t ) ( const QFont &, bool, const char * );
28typedef void ( *qapp_polish_t ) ( QApplication *, QWidget * );
29typedef QValueList <int> ( *qfdb_pointsizes_t ) ( QFontDatabase *, QString const &, QString const &, QString const & );
26 30
@@ -47,2 +51,41 @@ static void *resolve_symbol ( const char *sym )
47 51
52void polish__12QApplicationP7QWidget ( QApplication *that, QWidget *w )
53{
54 static qapp_polish_t qpolish = 0;
55
56 if ( !qpolish )
57 qpolish = (qapp_polish_t) resolve_symbol ( "polish__12QApplicationP7QWidget" );
58
59 if ( qpolish )
60 ( *qpolish ) ( that, w );
61
62 if (( ::strcmp ( qApp-> argv ( ) [0], "HancomMobileWord" ) == 0 ) && ( w-> inherits ( "HTextEdit" ))) {
63 QPalette pal = w-> palette ( );
64 pal. setColor ( QColorGroup::Background, pal. color ( QPalette::Active, QColorGroup::Base ));
65 w-> setPalette ( pal );
66 // w-> setPalette ( w-> palette ( ). active ( ). color ( QColorGroup::Base ));
67 }
68}
69
70extern QValueList <int> pointSizes__13QFontDatabaseRC7QStringN21 ( QFontDatabase *that, QString const &family, QString const &style, QString const &charset )
71{
72 static qfdb_pointsizes_t qpointsizes = 0;
73
74 if ( !qpointsizes )
75 qpointsizes = (qfdb_pointsizes_t) resolve_symbol ( "pointSizes__13QFontDatabaseRC7QStringN21" );
76
77 QValueList <int> sl;
78
79 if ( qpointsizes ) {
80 sl = ( *qpointsizes ) ( that, family, style, charset );
81
82 if ( ::strcmp ( qApp-> argv ( ) [0], "HancomMobileWord" ) == 0 ) {
83 for ( QValueList <int>::Iterator it = sl. begin ( ); it != sl. end ( ); ++it )
84 *it *= 10;
85 }
86 }
87
88 return sl;
89}
90
48extern void setStyle__12QApplicationP6QStyle ( QStyle *style ) 91extern void setStyle__12QApplicationP6QStyle ( QStyle *style )