2 ===================================================================
3 --- configure (revision 471775)
4 +++ configure (working copy)
6 [ -d $outpath/src/tools ] || mkdir -p $outpath/src/tools
7 cat > $outpath/src/tools/qconfig.cpp.new <<EOF
8 /* Install paths from configure */
11 static const char QT_INSTALL_PREFIX [267] = "qt_nstpath=$QT_INSTALL_PREFIX";
12 static const char QT_INSTALL_BINS [267] = "qt_binpath=$QT_INSTALL_BINS";
13 Index: src/kernel/qgplugin.h
14 ===================================================================
15 --- src/kernel/qgplugin.h (revision 471775)
16 +++ src/kernel/qgplugin.h (working copy)
23 -# define Q_EXPORT_PLUGIN(PLUGIN) \
24 - Q_PLUGIN_VERIFICATION_DATA \
25 - Q_EXTERN_C __declspec(dllexport) \
26 - const char * __stdcall qt_ucm_query_verification_data() \
27 - { return qt_ucm_verification_data; } \
28 - Q_EXTERN_C __declspec(dllexport) QUnknownInterface* \
29 - __stdcall ucm_instantiate() \
30 - Q_PLUGIN_INSTANTIATE( PLUGIN )
32 -# define Q_EXPORT_PLUGIN(PLUGIN) \
33 - Q_PLUGIN_VERIFICATION_DATA \
34 - Q_EXTERN_C __declspec(dllexport) \
35 - const char *qt_ucm_query_verification_data() \
36 - { return qt_ucm_verification_data; } \
37 - Q_EXTERN_C __declspec(dllexport) QUnknownInterface* ucm_instantiate() \
38 - Q_PLUGIN_INSTANTIATE( PLUGIN )
41 -# define Q_EXPORT_PLUGIN(PLUGIN) \
42 +#if defined(Q_WS_WIN) && defined(Q_CC_BOR)
43 +# define Q_STDCALL __stdcall
48 +#define Q_EXPORT_PLUGIN(PLUGIN) \
49 Q_PLUGIN_VERIFICATION_DATA \
51 - const char *qt_ucm_query_verification_data() \
52 + Q_EXTERN_C Q_EXPORT \
53 + const char * Q_STDCALL qt_ucm_query_verification_data() \
54 { return qt_ucm_verification_data; } \
55 - Q_EXTERN_C QUnknownInterface* ucm_instantiate() \
56 + Q_EXTERN_C Q_EXPORT QUnknownInterface* Q_STDCALL ucm_instantiate() \
57 Q_PLUGIN_INSTANTIATE( PLUGIN )
62 struct QUnknownInterface;
63 Index: src/kernel/qapplication_x11.cpp
64 ===================================================================
65 --- src/kernel/qapplication_x11.cpp (revision 471775)
66 +++ src/kernel/qapplication_x11.cpp (working copy)
69 // flags for extensions for special Languages, currently only for RTL languages
70 static bool qt_use_rtl_extensions = FALSE;
71 -bool qt_hebrew_keyboard_hack = FALSE;
72 +Q_EXPORT bool qt_hebrew_keyboard_hack = FALSE;
74 static Window mouseActWindow = 0; // window where mouse is
75 static int mouseButtonPressed = 0; // last mouse button pressed
80 -bool qt_try_modal( QWidget *widget, XEvent *event )
81 +Q_EXPORT bool qt_try_modal( QWidget *widget, XEvent *event )
83 if (qt_xdnd_dragging) {
84 // allow mouse events while DnD is active
85 Index: src/kernel/qtextengine_p.h
86 ===================================================================
87 --- src/kernel/qtextengine_p.h (revision 471775)
88 +++ src/kernel/qtextengine_p.h (working copy)
94 +class Q_EXPORT QTextEngine {
96 QTextEngine( const QString &str, QFontPrivate *f );
98 Index: src/tools/qglobal.h
99 ===================================================================
100 --- src/tools/qglobal.h (revision 471775)
101 +++ src/tools/qglobal.h (working copy)
103 # define Q_TEMPLATE_EXTERN
104 # undef Q_DISABLE_COPY /* avoid unresolved externals */
106 +#elif defined(Q_CC_GNU) && __GNUC__ - 0 >= 4
107 +# define Q_EXPORT __attribute__((visibility("default")))
108 +# undef QT_MAKEDLL /* ignore these for other platforms */
111 # undef QT_MAKEDLL /* ignore these for other platforms */
113 Index: tools/designer/uilib/qwidgetfactory.h
114 ===================================================================
115 --- tools/designer/uilib/qwidgetfactory.h (revision 471775)
116 +++ tools/designer/uilib/qwidgetfactory.h (working copy)
118 class QWidgetFactoryPrivate;
121 -class QWidgetFactory
122 +class Q_EXPORT QWidgetFactory
126 Index: tools/designer/uilib/qwidgetfactory.cpp
127 ===================================================================
128 --- tools/designer/uilib/qwidgetfactory.cpp (revision 471775)
129 +++ tools/designer/uilib/qwidgetfactory.cpp (working copy)
130 @@ -113,13 +113,13 @@
131 static QMap<QString, bool> *availableWidgetMap = 0;
132 static QStringList *availableWidgetList = 0;
134 -QMap<QWidget*, QString> *qwf_forms = 0;
135 +Q_EXPORT QMap<QWidget*, QString> *qwf_forms = 0;
136 QString *qwf_language = 0;
137 -bool qwf_execute_code = TRUE;
138 +Q_EXPORT bool qwf_execute_code = TRUE;
139 bool qwf_stays_on_top = FALSE;
140 QString qwf_currFileName = "";
141 QObject *qwf_form_object = 0;
142 -QString *qwf_plugin_dir = 0;
143 +Q_EXPORT QString *qwf_plugin_dir = 0;
145 static void setupPluginDir()
147 Index: tools/designer/shared/domtool.h
148 ===================================================================
149 --- tools/designer/shared/domtool.h (revision 471775)
150 +++ tools/designer/shared/domtool.h (working copy)
155 -class DomTool : public Qt
156 +class Q_EXPORT DomTool : public Qt
159 static QVariant readProperty( const QDomElement& e, const QString& name, const QVariant& defValue );