+2005-06-03 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
+
+ * QContentPane.[Ch]: Limit the QIM*Events to X11. They are not
+ needed (yet) on other OSes (and confuse qt/mac).
+
2005-05-31 Angus Leeming <leeming@lyx.org>
* QBibtexDialog.C (addDatabase): fix QString ->std::string
setFocusPolicy(QWidget::WheelFocus);
setFocus();
setCursor(ibeamCursor);
-#if QT_VERSION >= 0x030200
+#if USE_INPUT_METHODS
// to make qt-immodule work
setInputMethodEnabled(true);
#endif
}
-#if QT_VERSION >= 0x030200
+#if USE_INPUT_METHODS
// to make qt-immodule work
void QContentPane::imStartEvent(QIMEvent *e)
{
#include <boost/scoped_ptr.hpp>
+#if (defined(Q_WS_X11) && QT_VERSION >= 0x030200)
+#define USE_INPUT_METHODS 1
+#endif
+
class QWorkArea;
/// for emulating triple click
void wheelEvent(QWheelEvent * e);
/// key press
void keyPressEvent(QKeyEvent * e);
-#if QT_VERSION >= 0x030200
+#if USE_INPUT_METHODS
/// IM events
void imStartEvent(QIMEvent *);
void imComposeEvent(QIMEvent *);