author | sandman <sandman> | 2002-12-08 20:45:00 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-08 20:45:00 (UTC) |
commit | 30ce1a18a2b1a0de2116c5e636e70a2ae20e92b9 (patch) (unidiff) | |
tree | 1fbf8cd03460ae4a67209514dd13d816ca07da54 | |
parent | 8824690b4900ebfac866b90cf3e715b62a2acc89 (diff) | |
download | opie-30ce1a18a2b1a0de2116c5e636e70a2ae20e92b9.zip opie-30ce1a18a2b1a0de2116c5e636e70a2ae20e92b9.tar.gz opie-30ce1a18a2b1a0de2116c5e636e70a2ae20e92b9.tar.bz2 |
added missing includes
added all hancom apps to the pointSizes fix
-rw-r--r-- | library/qt_override.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/qt_override.cpp b/library/qt_override.cpp index 0d783bd..9c5ba24 100644 --- a/library/qt_override.cpp +++ b/library/qt_override.cpp | |||
@@ -1,49 +1,53 @@ | |||
1 | 1 | ||
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <qwsdecoration_qws.h> | 3 | #include <qwsdecoration_qws.h> |
4 | #include <qcommonstyle.h> | 4 | #include <qcommonstyle.h> |
5 | #include <qfontdatabase.h> | 5 | #include <qfontdatabase.h> |
6 | 6 | ||
7 | #include <unistd.h> | 7 | #include <unistd.h> |
8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
9 | #include <stdio.h> | 9 | #include <stdio.h> |
10 | #include <limits.h> | ||
11 | #include <sys/param.h> // for toolchains with old libc headers | ||
10 | 12 | ||
11 | #include "qt_override_p.h" | 13 | #include "qt_override_p.h" |
12 | 14 | ||
13 | 15 | ||
14 | 16 | ||
15 | struct color_fix_t { | 17 | struct color_fix_t { |
16 | char *m_app; | 18 | char *m_app; |
17 | char *m_class; | 19 | char *m_class; |
18 | char *m_name; | 20 | char *m_name; |
19 | QColorGroup::ColorRole m_set; | 21 | QColorGroup::ColorRole m_set; |
20 | QColorGroup::ColorRole m_get; | 22 | QColorGroup::ColorRole m_get; |
21 | }; | 23 | }; |
22 | 24 | ||
23 | 25 | ||
24 | 26 | ||
25 | static const color_fix_t apps_that_need_special_colors [] = { | 27 | static const color_fix_t apps_that_need_special_colors [] = { |
26 | { "HancomMobileWord", "HTextEdit", 0, QColorGroup::Background, QColorGroup::Base }, | 28 | { "HancomMobileWord", "HTextEdit", 0, QColorGroup::Background, QColorGroup::Base }, |
27 | { "neocal", "Display", 0, QColorGroup::Background, QColorGroup::Base }, | 29 | { "neocal", "Display", 0, QColorGroup::Background, QColorGroup::Base }, |
28 | 30 | ||
29 | { 0, 0, 0, QColorGroup::Base, QColorGroup::Base } | 31 | { 0, 0, 0, QColorGroup::Base, QColorGroup::Base } |
30 | }; | 32 | }; |
31 | 33 | ||
32 | static const char * const apps_that_need_pointsizes_times_10 [] = { | 34 | static const char * const apps_that_need_pointsizes_times_10 [] = { |
33 | "HancomMobileWord", | 35 | "HancomMobileWord", |
36 | "hancomsheet", | ||
37 | "HancomPresenterViewer", | ||
34 | 38 | ||
35 | 0 | 39 | 0 |
36 | }; | 40 | }; |
37 | 41 | ||
38 | 42 | ||
39 | 43 | ||
40 | 44 | ||
41 | int Opie::force_appearance = 0; | 45 | int Opie::force_appearance = 0; |
42 | 46 | ||
43 | 47 | ||
44 | // Return the *real* name of the binary - not just a quick guess | 48 | // Return the *real* name of the binary - not just a quick guess |
45 | // by looking at argv [0] (which could be anything) | 49 | // by looking at argv [0] (which could be anything) |
46 | 50 | ||
47 | static void binaryNameFree ( ) | 51 | static void binaryNameFree ( ) |
48 | { | 52 | { |
49 | ::free ((void *) Opie::binaryName ( )); // we need to cast away the const here | 53 | ::free ((void *) Opie::binaryName ( )); // we need to cast away the const here |